Steam Fort 0.5
|
#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< 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. | |
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. |
int main | ( | ) |
Main game function.
Contains main game loop
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.
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 = (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.