Restructure/refactor of main.c
This commit is contained in:
27
game/map_init.h
Normal file
27
game/map_init.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef PIXELDEFENSE_MAP_INITIALIZATION_H
|
||||
#define PIXELDEFENSE_MAP_INITIALIZATION_H
|
||||
|
||||
#include <breeze.h>
|
||||
|
||||
typedef enum Layers {
|
||||
LAYER_TERRAIN = 0,
|
||||
LAYER_FOLIAGE,
|
||||
LAYER_TREES,
|
||||
LAYER_TREES2,
|
||||
LAYER_BUILDINGS,
|
||||
LAYER_BUILDING_OWNER,
|
||||
} Layers;
|
||||
|
||||
typedef enum ObjectGroup {
|
||||
OBJECTS_GAME = 0,
|
||||
OBJECTS_ENTITIES,
|
||||
} ObjectGroup;
|
||||
|
||||
|
||||
bool initGameObjectsLayer(BzTileMap *map, BzTileObjectGroup *objectGroup);
|
||||
|
||||
bool initEntityObjectsLayer(BzTileMap *map, BzTileObjectGroup *objectGroup);
|
||||
|
||||
bool initBuildingsLayer(BzTileMap *map, BzTileLayer *layer);
|
||||
|
||||
#endif //PIXELDEFENSE_MAP_INITIALIZATION_H
|
||||
Reference in New Issue
Block a user