helapordo 1.4.12
|
#include "rooms.h"
Functions | |
void | initRoom_Home (Room *r, int roomIndex, Fighter *f, loadInfo *load_info, Koliseo_Temp *t_kls) |
Takes one Room pointer of class HOME and initialises all the fields. | |
void | initRoom_Enemies (Room *r, int roomIndex, int enemyTotal, loadInfo *load_info, Koliseo_Temp *t_kls) |
Takes one Room pointer of class ENEMIES and initialises all the fields. | |
void | initRoom_Shop (Room *r, int roomIndex, Fighter *f, Koliseo_Temp *t_kls) |
Takes one Room pointer of class SHOP and initialises all the fields, using stats from the passed fighter pointer to generate items. | |
void | initRoom_Boss (Room *r, int roomIndex, Fighter *f, Koliseo_Temp *t_kls) |
Takes one Room pointer of class BOSS and initialises all the fields, using stats from the passed fighter pointer to generate items. | |
void | initRoom_Treasure (Room *r, int roomIndex, Fighter *f, Koliseo_Temp *t_kls) |
Takes one Room pointer of class TREASURE and initialises all the fields, using stats from the passed fighter pointer to generate items. | |
void | initRoom_Roadfork (Room *r, int roomIndex, Fighter *f, Koliseo_Temp *t_kls) |
Takes one Room pointer of class ROADFORK and initialises all the fields, using stats from the passed fighter pointer to generate items. | |
void | initRoom (Room *r, Fighter *f, int index, roomClass type, int enemyTotal, loadInfo *load_info, Koliseo_Temp *t_kls) |
Takes one Room pointer and calls the correct initialising function, after setting the room class value. | |
void initRoom | ( | Room * | r, |
Fighter * | f, | ||
int | index, | ||
roomClass | type, | ||
int | enemyTotal, | ||
loadInfo * | load_info, | ||
Koliseo_Temp * | t_kls ) |
Takes one Room pointer and calls the correct initialising function, after setting the room class value.
The passed Fighter pointer is used to influence room generation.
r | The Room whose fields will be initialised. |
f | The Fighter to influence room generation. |
index | The index of the room to initialise. |
type | The roomClass of the room that will be initialised. |
enemyTotal | The total number of enemies to prepare for the room. |
load_info | Contains values used to handle loading a gme. |
t_kls | The Koliseo_Temp used for allocations. |
Takes one Room pointer of class BOSS and initialises all the fields, using stats from the passed fighter pointer to generate items.
void initRoom_Enemies | ( | Room * | r, |
int | roomIndex, | ||
int | enemyTotal, | ||
loadInfo * | load_info, | ||
Koliseo_Temp * | t_kls ) |
Takes one Room pointer of class ENEMIES and initialises all the fields.
r | The Room whose fields will be initialised. |
roomIndex | The index of the room to initialise. |
enemyTotal | The total number of enemies to prepare for the room. |
load_info | Contains values used to handle loading a gme. |
t_kls | The Koliseo_Temp used for allocations. |
void initRoom_Home | ( | Room * | r, |
int | roomIndex, | ||
Fighter * | f, | ||
loadInfo * | load_info, | ||
Koliseo_Temp * | t_kls ) |
Takes one Room pointer of class ROADFORK and initialises all the fields, using stats from the passed fighter pointer to generate items.
Takes one Room pointer of class SHOP and initialises all the fields, using stats from the passed fighter pointer to generate items.
Takes one Room pointer of class TREASURE and initialises all the fields, using stats from the passed fighter pointer to generate items.