Steam Fort 0.5
Functions | Variables

src/main.cpp File Reference

#include <vector>
#include <iostream>
#include "libtcod.hpp"
#include "main.hpp"
#include "building.hpp"
#include "item.hpp"
#include "mobile.hpp"
#include "order.hpp"
#include "utils.hpp"
#include "mainmenu.hpp"
#include "game.hpp"
#include "ui.hpp"
#include "gui/gui.hpp"
#include "designation.hpp"
#include "design.hpp"
#include "message.hpp"
#include "ai.hpp"
#include "combat.hpp"
#include "fort.hpp"
#include "mission.hpp"
#include "adventure.hpp"
#include "help.hpp"

Functions

int main ()
 Main game function.

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.
TCODMap * fovmap = new TCODMap(MAPWIDTH, MAPHEIGHT)
 Map with information about cells (walkable, transparent).
int stage
 Used in some game options.
TCODConsole * offconsole = new TCODConsole(SCREENWIDTH, SCREENHEIGHT)
 Offscreen console, used to draw temporary things.
int screenx = (MAPWIDTH / 2) - (SCREENWIDTH / 2)
 X-axis position of top left corner of screen.
int screeny = (MAPHEIGHT / 2) - (SCREENHEIGHT / 2)
 Y-axis position of top left corner of screen.
GameState state = MAINMENU
 State of game.
float secs = 0
 Amount of second elapsed (used to count game time)
int gtime [4] = {8, 1, 4, 400}
 Game time 0 - hour, 1 - day, 2 - month, 3 - year.

Function Documentation

int main ( )

Main game function.

Contains main game loop


Variable Documentation

TCODMap* fovmap = new TCODMap(MAPWIDTH, MAPHEIGHT)

Map with information about cells (walkable, transparent).

int gtime[4] = {8, 1, 4, 400}

Game time 0 - hour, 1 - day, 2 - month, 3 - year.

TCODConsole* offconsole = new TCODConsole(SCREENWIDTH, SCREENHEIGHT)

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 = (MAPWIDTH / 2) - (SCREENWIDTH / 2)

X-axis position of top left corner of screen.

int screeny = (MAPHEIGHT / 2) - (SCREENHEIGHT / 2)

Y-axis position of top left corner of screen.

float secs = 0

Amount of second elapsed (used to count game time)

int stage

Used in some game options.

GameState state = MAINMENU

State of game.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines