You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
2.3 KiB
101 lines
2.3 KiB
#ifndef DEFINITIONS_H_
|
|
#define DEFINITIONS_H_
|
|
|
|
|
|
//#define ACT_TIME 0.03333333333f// 30/s
|
|
#define ACT_TIME 0.01666666666f // 60/s
|
|
//#define ACT_TIME 0.00833333333f// 120/s
|
|
|
|
|
|
#define N 0
|
|
#define NE 1
|
|
#define E 3
|
|
#define SE 5
|
|
#define S 7
|
|
#define SW 6
|
|
#define W 4
|
|
#define NW 2
|
|
#define DIRECTIONS_AMOUNT 8
|
|
|
|
// Texture definitions
|
|
#define TE_CURSOR 0
|
|
#define TE_WORKER 1
|
|
#define TE_BUILDING 2
|
|
#define TE_BAUSTELLE 3
|
|
#define TE_PINETREE 4
|
|
#define TE_LUMBERJACK 5
|
|
#define TE_SELECTABLE_BACKGROUND 6
|
|
#define TE_BUTTON 7
|
|
#define TE_TILES 8
|
|
|
|
#define TE_AMOUNT 9
|
|
|
|
#define TE_ENTITY_LENGTH 104
|
|
#define TE_MAPOBJECT_LENGTH 1
|
|
#define TE_SELECTABLE_BACKGROUND_LENGTH 3
|
|
#define TE_BUTTON_LENGTH 3
|
|
#define TE_TILES_LENGTH 13
|
|
|
|
// Definitions for animations
|
|
#define AN_WORKER 0
|
|
#define AN_LUMBERJACK 1
|
|
#define AN_AMOUNT 2
|
|
|
|
#define AN_ENTITY_AMOUNT 3
|
|
#define AN_ENTITY_IDLE 0
|
|
#define AN_ENTITY_ARBEITEN 1
|
|
#define AN_ENTITY_DIE 2
|
|
|
|
// Definitions for buildings
|
|
#define BU_HOUSE 0
|
|
|
|
// Defintions for static map objects
|
|
#define SO_PINETREE 0
|
|
|
|
// Defintions for professions
|
|
#define PR_BUILDER 0
|
|
#define PR_LUMBERJACK 1
|
|
|
|
// Definitions for Screen / View / Ui Stuff
|
|
|
|
#define DEBUG_FONT_SIZE 20
|
|
|
|
#define SCREEN_AMOUNT 5
|
|
|
|
#define SCREEN_EXIT 0 // Will exit the game using exit-code 0
|
|
#define SCREEN_MAINMENU 1
|
|
#define SCREEN_OPTIONS 2
|
|
#define SCREEN_GAME 3
|
|
#define SCREEN_PAUSE 4
|
|
|
|
#define UI_CONTAINER_MAX_BUTTONS 20
|
|
#define UI_CONTAINER_MAX_SELECTABLES 20
|
|
|
|
#define BUTTON_STATE_DEFAULT 0
|
|
#define BUTTON_STATE_HOVERED 1
|
|
#define BUTTON_STATE_PRESSED 2
|
|
#define BUTTON_STATE_RELEASED 3 // Buttons code will be executed when in Released state
|
|
|
|
#define SELECTABLE_STATE_DEFAULT 0
|
|
#define SELECTABLE_STATE_HOVERED 1
|
|
#define SELECTABLE_STATE_SELECTED 2 // Selectable code will be executed every frame while in Selected state
|
|
|
|
#define BUTTON_ID_CONTINUE 0
|
|
#define BUTTON_ID_EXIT 1
|
|
#define BUTTON_ID_START_GAME 2
|
|
|
|
#define SELECTABLE_ID_SPAWN_BUILDING 0
|
|
#define SELECTABLE_ID_SPAWN_WORKER 1
|
|
#define SELECTABLE_ID_SPAWN_LUMBERJACK 2
|
|
#define SELECTABLE_ID_DRAWING_TILE 30 // Ab dieser ID sind ISOMETRICMAP_TILE_TEXTURE_AMOUNT IDs reserviert für Map Tiles!!!
|
|
|
|
#define UNSELECT_SELECTABLE_ON_SELECT 1
|
|
|
|
// Definitions for IsometricMap tiles
|
|
|
|
#define ISOMETRICMAP_TILE_TEXTURE_AMOUNT 8 // in IsometricMapInit werden TILE_TEXTURE_AMOUNT Texturen geladen
|
|
|
|
|
|
|
|
#endif
|