Steam Fort 0.5
Functions | Variables

src/adventure.hpp File Reference

Go to the source code of this file.

Functions

void start_adventure (int index)
 Start adventure, create map, fill with player, mobs, etc.
void move_player (int x, int y)
 Move, set target for player.
void update_adventure ()
 Update state of all mobiles and items in adventure mode.
void draw_adventure ()
 Draw adventure map.
void setVisibleAdvmenu (bool visible)
 Show/hide adventure menu.
void buildAdventureUI ()
 Build adventure UI.

Variables

Cell advmap [MAPHEIGHT][MAPWIDTH]
vector< Mobileadvmobs
vector< Itemadvobjs
int dungeonlevel
Mission mission

Function Documentation

void buildAdventureUI ( )

Build adventure UI.

void draw_adventure ( )

Draw adventure map.

void move_player ( int  x,
int  y 
)

Move, set target for player.

Parameters:
xX-axis position of point to move.
yY-axis position of point to move.
void setVisibleAdvmenu ( bool  visible)

Show/hide adventure menu.

Parameters:
visibleIf true show menu, otherwise hide.
void start_adventure ( int  index)

Start adventure, create map, fill with player, mobs, etc.

Parameters:
indexIndex of mission.
void update_adventure ( )

Update state of all mobiles and items in adventure mode.


Variable Documentation

Cell advmap[MAPHEIGHT][MAPWIDTH]
vector<Mobile> advmobs
vector<Item> advobjs
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines