Steam Fort 0.5
|
#include <vector>
#include "mobile.hpp"
#include "item.hpp"
#include "order.hpp"
#include "building.hpp"
#include "recipe.hpp"
#include "mission.hpp"
#include "map.hpp"
#include "magic.hpp"
Go to the source code of this file.
Defines | |
#define | MAPWIDTH 250 |
#define | MAPHEIGHT 250 |
#define | SCREENWIDTH 100 |
#define | SCREENHEIGHT 75 |
#define | NONE -1 |
Typedefs | |
typedef enum GameState | GAMESTATE |
Contains game states (main menu, fort, etc). | |
typedef enum ObjectTypes | OBJECTTYPE |
Contains objects types (mobile, item) | |
typedef enum LandTypes | LANDTYPE |
Enumerations | |
enum | GameState { MAINMENU, FORT, CREW, ORDERS, ORDER, BUILD, CONSTRUCT, OBJECTS, ABOUT, MOBINFO, ENDGAME, MARKS, MARK, DESIGN, MESSAGES, MOBINV, MISSIONS, ADVENTURE, MOBINFO2, MOBINV2, HELP, HELP2, CAST, CAST2, MTARGET, MTARGET2 } |
Contains game states (main menu, fort, etc). More... | |
enum | ObjectTypes { MOB, ITEM, BUILDING, ORDER1, DISCOVER, RECIPE, LAND, MISSION, HELPENTRY, SPELL } |
Contains objects types (mobile, item) More... | |
enum | LandTypes { EARTH, LSAND, WATER } |
Functions | |
void | draw_fort () |
Draw fort area. | |
void | game_menu () |
Variables | |
vector< Item > | protoobjs |
Contains all proto items. | |
vector< Mobile > | protomobs |
Contains all proto mobiles. | |
vector< Building > | protobuilds |
Contains all proto buildings. | |
vector< Mission > | protomissions |
Contains all informations about missions. | |
vector< Spell > | protospells |
Contains all informations about spells. | |
vector< Mobile > | fortmobs |
Contains all mobiles in fort (player, robots, etc). | |
vector< Item > | fortobjs |
Contains all items in fort (resources, materials, etc). | |
vector< Order > | fortorders |
Contains all available orders. | |
vector< Building > | fortbuilds |
Contains all available buildings. | |
vector< Recipe > | fortrecipes |
Contains all available recipes. | |
TCODMap * | fovmap |
Map with information about cells (walkable, transparent). | |
int | stage |
Used in some game options. | |
TCODConsole * | offconsole |
Offscreen console, used to draw temporary things. | |
int | screenx |
X-axis position of top left corner of screen. | |
int | screeny |
Y-axis position of top left corner of screen. | |
GameState | state |
State of game. | |
vector< int > | designated [2] |
Indexes of designated resources (firt element = resource type) | |
int | gtime [4] |
Game time 0 - hour, 1 - day, 2 - month, 3 - year. | |
Cell | fortmap [MAPHEIGHT][MAPWIDTH] |
Contains all informations about fort map. | |
float | secs |
Amount of second elapsed (used to count game time) |
#define MAPHEIGHT 250 |
#define MAPWIDTH 250 |
#define NONE -1 |
#define SCREENHEIGHT 75 |
#define SCREENWIDTH 100 |
typedef enum ObjectTypes OBJECTTYPE |
Contains objects types (mobile, item)
enum GameState |
enum LandTypes |
enum ObjectTypes |
void draw_fort | ( | ) |
Draw fort area.
void game_menu | ( | ) |
vector<int> designated[2] |
Indexes of designated resources (firt element = resource type)
vector<Building> fortbuilds |
Contains all available buildings.
vector<Order> fortorders |
Contains all available orders.
vector<Recipe> fortrecipes |
Contains all available recipes.
TCODMap* fovmap |
Map with information about cells (walkable, transparent).
int gtime[4] |
Game time 0 - hour, 1 - day, 2 - month, 3 - year.
TCODConsole* offconsole |
Offscreen console, used to draw temporary things.
vector<Building> protobuilds |
Contains all proto buildings.
vector<Mission> protomissions |
Contains all informations about missions.
vector<Spell> protospells |
Contains all informations about spells.
int screenx |
X-axis position of top left corner of screen.
int screeny |
Y-axis position of top left corner of screen.
float secs |
Amount of second elapsed (used to count game time)
int stage |
Used in some game options.