Skip to content
This repository
Browse code

Removed references to unused allegro_native_dialog.h

  • Loading branch information...
commit b70f343c8d8bd960ce8f6dd262051a40ce9908ec 1 parent 61098fd
Cheeseness authored

Showing 2 changed files with 0 additions and 114 deletions. Show diff stats Hide diff stats

  1. +0 70 src/utilities.cpp~
  2. +0 44 src/utilities.h~
70 src/utilities.cpp~
... ... @@ -1,70 +0,0 @@
1   -/*
2   -Copyright 2012 Johan "SteelRaven7" Hassel
3   -
4   -This file is part of FLAT.
5   -
6   -FLAT is free software: you can redistribute it and/or modify
7   -it under the terms of the GNU General Public License as published by
8   -the Free Software Foundation, either version 3 of the License, or
9   -(at your option) any later version.
10   -
11   -FLAT is distributed in the hope that it will be useful,
12   -but WITHOUT ANY WARRANTY; without even the implied warranty of
13   -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14   -GNU General Public License for more details.
15   -
16   -You should have received a copy of the GNU General Public License
17   -along with FLAT. If not, see <http://www.gnu.org/licenses/>.
18   -*/
19   -
20   -
21   -#include "utilities.h"
22   -
23   -using namespace std;
24   -
25   -void Print(string output) {
26   - cout<<output<<"\n";
27   -}
28   -
29   -void Print(string output, float n) {
30   - cout<<output<<" "<<n<<"\n";
31   -}
32   -
33   -void Print(string output, vec2 v) {
34   - cout<<output<<" ("<<v.x<<", "<<v.y<<")"<<"\n";
35   -}
36   -
37   -void Alert(const char* msg) {
38   - /*al_show_native_message_box(
39   - NULL,
40   - "Warning",
41   - msg,
42   - NULL,
43   - NULL,
44   - ALLEGRO_MESSAGEBOX_WARN
45   - );*/
46   -}
47   -
48   -void Error(const char* msg) {
49   - /*al_show_native_message_box(
50   - NULL,
51   - "Error",
52   - msg,
53   - NULL,
54   - NULL,
55   - ALLEGRO_MESSAGEBOX_ERROR
56   - );*/
57   -}
58   -
59   -float random(float scale) {
60   - return (((float)(rand()%20000-10000))/10000.0f)*scale;
61   -}
62   -
63   -bool chance(float chance) {
64   - return rand()%30000<chance*30000.0f;
65   -}
66   -
67   -float mod(float a, float b) {
68   - int n = (int)(a/b);
69   - return a-b*n;
70   -}
44 src/utilities.h~
... ... @@ -1,44 +0,0 @@
1   -/*
2   -Copyright 2012 Johan "SteelRaven7" Hassel
3   -
4   -This file is part of FLAT.
5   -
6   -FLAT is free software: you can redistribute it and/or modify
7   -it under the terms of the GNU General Public License as published by
8   -the Free Software Foundation, either version 3 of the License, or
9   -(at your option) any later version.
10   -
11   -FLAT is distributed in the hope that it will be useful,
12   -but WITHOUT ANY WARRANTY; without even the implied warranty of
13   -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14   -GNU General Public License for more details.
15   -
16   -You should have received a copy of the GNU General Public License
17   -along with FLAT. If not, see <http://www.gnu.org/licenses/>.
18   -*/
19   -
20   -
21   -//utilities.h
22   -
23   -#include <iostream>
24   -#include <string>
25   -#include <cstdlib>
26   -//#include <allegro5/allegro_native_dialog.h>
27   -
28   -#include "vec2.h"
29   -
30   -#ifndef __UTILITIES_H_LOCK__
31   -#define __UTILITIES_H_LOCK__
32   -
33   -using namespace std;
34   -
35   -void Print(string output);
36   -void Print(string output, float n);
37   -void Print(string output, vec2 v);
38   -void Alert(const char* msg);
39   -void Error(const char* msg);
40   -float random(float scale);
41   -bool chance(float chance);
42   -float mod(float a, float b);
43   -
44   -#endif // __UTILITIES_H_LOCK__

0 comments on commit b70f343

Please sign in to comment.
Something went wrong with that request. Please try again.