40 lines
679 B
C
40 lines
679 B
C
#ifndef STATE_TRAVEL_H
|
|
#define STATE_TRAVEL_H
|
|
#include <SDL2/SDL.h>
|
|
#include "Text.h"
|
|
|
|
int openTravelState();
|
|
void closeTravelState();
|
|
void processTravelState();
|
|
int handleTravelState();
|
|
void renderTravelState();
|
|
|
|
#define LOAD_MAP 0
|
|
#define LOAD_RESOURCES 1
|
|
#define LOAD_ANIMATIONS 2
|
|
#define LOAD_ENTITIES 40
|
|
#define LOAD_ENTITY_ANIM 41
|
|
#define LOAD_CELL_ANIM 20
|
|
#define LOAD_CELL_ANIM_Y 21
|
|
#define LOAD_SPRITES 3
|
|
#define INIT_LIVE_MAP 4
|
|
#define START_GAME 5
|
|
#define ERROR_LOAD 6
|
|
int travel_state;
|
|
char spins[5];
|
|
int spin;
|
|
int spin_time;
|
|
|
|
int timer;
|
|
|
|
struct Textt *travel_text;
|
|
struct Textt *state_text;
|
|
|
|
struct MapData *map_data; // we load into this first
|
|
|
|
int x, y;
|
|
|
|
|
|
|
|
#endif
|