Steam Fort 0.5
Defines | Typedefs | Enumerations | Functions | Variables

src/main.hpp File Reference

#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< Itemprotoobjs
 Contains all proto items.
vector< Mobileprotomobs
 Contains all proto mobiles.
vector< Buildingprotobuilds
 Contains all proto buildings.
vector< Missionprotomissions
 Contains all informations about missions.
vector< Spellprotospells
 Contains all informations about spells.
vector< Mobilefortmobs
 Contains all mobiles in fort (player, robots, etc).
vector< Itemfortobjs
 Contains all items in fort (resources, materials, etc).
vector< Orderfortorders
 Contains all available orders.
vector< Buildingfortbuilds
 Contains all available buildings.
vector< Recipefortrecipes
 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 Documentation

#define MAPHEIGHT   250
#define MAPWIDTH   250
#define NONE   -1
#define SCREENHEIGHT   75
#define SCREENWIDTH   100

Typedef Documentation

typedef enum GameState GAMESTATE

Contains game states (main menu, fort, etc).

typedef enum LandTypes LANDTYPE
typedef enum ObjectTypes OBJECTTYPE

Contains objects types (mobile, item)


Enumeration Type Documentation

enum GameState

Contains game states (main menu, fort, etc).

Enumerator:
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 
enum LandTypes
Enumerator:
EARTH 
LSAND 
WATER 

Contains objects types (mobile, item)

Enumerator:
MOB 
ITEM 
BUILDING 
ORDER1 
DISCOVER 
RECIPE 
LAND 
MISSION 
HELPENTRY 
SPELL 

Function Documentation

void draw_fort ( )

Draw fort area.

void game_menu ( )

Variable Documentation

vector<int> designated[2]

Indexes of designated resources (firt element = resource type)

Contains all available buildings.

Cell fortmap[MAPHEIGHT][MAPWIDTH]

Contains all informations about fort map.

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.

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.

Contains all proto buildings.

Contains all informations about missions.

vector<Mobile> protomobs

Contains all proto mobiles.

vector<Item> protoobjs

Contains all proto items.

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.

State of game.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines