ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gametype.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 /*
23  * This code is based on the CRAB engine
24  *
25  * Copyright (c) Arvind Raja Yadav
26  *
27  * Licensed under MIT
28  *
29  */
30 
31 #ifndef CRAB_GAMETYPE_H
32 #define CRAB_GAMETYPE_H
33 
34 namespace Crab {
35 
36 #define STATNAME_HEALTH "health"
37 #define STATNAME_ATTACK "attack"
38 #define STATNAME_DEFENSE "defense"
39 #define STATNAME_SPEED "speed"
40 // #define STATNAME_CHARISMA "charisma"
41 // #define STATNAME_INTELLIGENCE "intelligence"
42 
43 namespace pyrodactyl {
44 
45 namespace stat {
46 
47 enum StatType {
48  STAT_HEALTH,
49  STAT_ATTACK,
50  STAT_DEFENSE,
51  STAT_SPEED,
52  /*STAT_CHARISMA,
53  STAT_INTELLIGENCE,*/
54  STAT_TOTAL
55 };
56 
57 } // End of namespace stat
58 
59 } // End of namespace pyrodactyl
60 
61 enum Align {
62  ALIGN_LEFT,
63  ALIGN_CENTER,
64  ALIGN_RIGHT
65 };
66 
67 enum Direction {
68  // An invalid direction, used for collisions
69  DIRECTION_NONE = -1,
70 
71  // South
72  DIRECTION_DOWN,
73 
74  // North
75  DIRECTION_UP,
76 
77  // West
78  DIRECTION_LEFT,
79 
80  // East
81  DIRECTION_RIGHT,
82 
83  // Also an invalid direction, used for animations
84  DIRECTION_TOTAL
85 };
86 
87 enum TextureFlipType {
88  // Draw texture normally
89  FLIP_NONE,
90 
91  // Flipped horizontally
92  FLIP_X,
93 
94  // Flipped vertically
95  FLIP_Y,
96 
97  // Flipped horizontally and vertically
98  FLIP_XY,
99 
100  // Flipped anti-diagonally, where anti-diagonal is from top right corner to bottom left
101  FLIP_D,
102 
103  // Flipped both anti-diagonally and horizontally
104  FLIP_DX,
105 
106  // Flipped both anti-diagonally and vertically
107  FLIP_DY,
108 
109  // Flipped anti-diagonally and horizontally and vertically - MAXIMUM FLIP
110  FLIP_XYD
111 };
112 
113 } // End of namespace Crab
114 
115 #endif // CRAB_GAMETYPE_H
Definition: moveeffect.h:37