aboutsummaryrefslogtreecommitdiff
path: root/Source/GameStructures.h
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-09-16 03:21:15 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-09-16 03:21:15 +0200
commit6629a61c3bde7a79c7ac32d6bffbc72e31e91fc3 (patch)
tree7a23885577374b5a5760ae4514099feadae312cf /Source/GameStructures.h
parent0d7af34486f15d8f31f8474f17cad698923cadcb (diff)
downloadairport-6629a61c3bde7a79c7ac32d6bffbc72e31e91fc3.tar.gz
* Removed unneeded -g flag from Makefile.
* Aircraft now prevents collision against other aircraft if state == STATE_TAXIING. * Game: new event handlers for new Aircraft collision prevention algorithm. * Font: although not compulsory, _blend_effect_lum should be volatile. * Other minor changes.
Diffstat (limited to 'Source/GameStructures.h')
-rw-r--r--Source/GameStructures.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/Source/GameStructures.h b/Source/GameStructures.h
index 0b5358f..9c43163 100644
--- a/Source/GameStructures.h
+++ b/Source/GameStructures.h
@@ -46,7 +46,8 @@ typedef enum t_flstate
STATE_CLIMBING,
STATE_APPROACH,
STATE_FINAL,
- STATE_STOPPED,
+ STATE_USER_STOPPED,
+ STATE_AUTO_STOPPED,
STATE_LANDED
}FL_STATE;
@@ -203,12 +204,12 @@ typedef struct
typedef enum t_fontflags
{
- FONT_NOFLAGS = 0,
- FONT_CENTERED = 0x01,
- FONT_WRAP_LINE = 0x02,
- FONT_BLEND_EFFECT = 0x04,
- FONT_1HZ_FLASH = 0x08,
- FONT_2HZ_FLASH = 0x10
+ FONT_NOFLAGS = 1 << 0,
+ FONT_CENTERED = 1 << 1,
+ FONT_WRAP_LINE = 1 << 2,
+ FONT_BLEND_EFFECT = 1 << 3,
+ FONT_1HZ_FLASH = 1 << 4,
+ FONT_2HZ_FLASH = 1 << 5
}FONT_FLAGS;
typedef struct t_Font
@@ -220,7 +221,7 @@ typedef struct t_Font
char init_ch;
uint8_t char_per_row;
uint8_t max_ch_wrap;
- FONT_FLAGS flags;
+ volatile FONT_FLAGS flags;
short spr_w;
short spr_h;
short spr_u;