helapordo 1.4.12
|
Go to the source code of this file.
Functions | |
void | initPerks (Fighter *f, Koliseo *kls) |
Takes a Fighter pointer and prepares its perks field by allocating all the Perk accounted in perkClass. | |
void | initConsumableBag (Fighter *f, Koliseo *kls) |
Takes a Fighter pointer and prepares its consumablesBag field by allocating a Consumable for each consumableClass. | |
void | initCounters (Fighter *f, Koliseo *kls) |
Takes a Fighter pointer and prepares its counters field by allocating all the Turncounter accounted in counterIndexes. | |
void | initECounters (Enemy *e, Koliseo_Temp *t_kls) |
Takes a Enemy pointer and prepares its counters field by allocating all the Turncounter accounted in counterIndexes. | |
void | initBCounters (Boss *b, Koliseo_Temp *t_kls) |
Takes a Boss pointer and prepares its counters field by allocating all the Turncounter accounted in counterIndexes. | |
void | initFoePartyCounters (FoeParty *fp, Koliseo_Temp *t_kls) |
Takes a FoeParty pointer and prepares its counters field by allocating all the Turncounter accounted in counterIndexes. | |
void | initBossStats (Boss *b, Koliseo_Temp *t_kls) |
Takes one Boss pointer and initialises the boss fields. | |
void | prepareBoss (Boss *b, Koliseo_Temp *t_kls) |
Takes a Boss pointer and initialises all the fields making it ready for use in battle. | |
void | initFoePartyStats (FoeParty *fp, Koliseo_Temp *t_kls) |
Takes one FoeParty pointer and initialises the party fields. | |
void | prepareFoeParty (FoeParty *fp, int total_foes, int roomindex, Koliseo_Temp *t_kls) |
Takes a FoeParty pointer, a size for complete party, and an integer for the current room index, and initialises all the fields making the FoeParty ready for use in battle. | |
void | initEquipSlots (Fighter *f, Koliseo *kls) |
Takes a Fighter pointer and prepares its equipslots field by allocating an Equipslot for each Equipzone. | |
void | initArtifactsBag (Fighter *f, Koliseo *kls) |
Takes a Fighter pointer and prepares its artifactsBag field by allocating a Artifact for each artifactClass. | |
void | initEquipsBag (Fighter *f, Koliseo *kls) |
Takes a Fighter pointer and prepares its equipsBag field by allocating an Equip for each array slot. | |
void | initPlayerStats (Fighter *player, Path *path, Koliseo *kls) |
Takes one Fighter and one Path pointers and initialises the fighter fields. | |
void | initEnemyStats (Enemy *e, Koliseo_Temp *t_kls) |
Takes one Enemy pointer and initialises the enemy fields. | |
void | setSkills (Fighter *f, Koliseo *kls) |
Takes a Fighter pointer and prepares its skillSlot fields by allocating FIGHTER_SKILL_SLOTS slots. | |
void | initChest (Chest *c, Fighter *f, Koliseo_Temp *t_kls) |
Takes a Chest and Fighter pointers and initialises all the fields in chest based on chest class and fighter stats. | |
void | initShop (Shop *s, int indexWeight, Fighter *player, Koliseo_Temp *t_kls) |
Takes one Shop pointer and initialises all the fields, depeding on stats from the Fighter pointer passed. | |
void | initTreasure (Treasure *t, Fighter *f, Koliseo_Temp *t_kls) |
Takes a Treasure and Fighter pointers and initialises all the treasure fields based on its class and fighter's stats. | |
void | prepareChest (Chest *c, Fighter *f, Koliseo_Temp *t_kls) |
Takes a Chest and Fighter pointers and initialises all the fields in chest making it ready for use in battle, using fighter stats to influence init. | |
void | prepareRoomEnemy (Enemy *e, int roomindex, int enemiesInRoom, int enemyindex, Koliseo_Temp *t_kls) |
Takes a Enemy and three integers denoting current room index, how many enemies are in the room and current enemy index. | |
void | prepareTreasure (Treasure *t, Fighter *f, Koliseo_Temp *t_kls) |
Takes a Treasure and Fighter pointer and initialises all the treasure fields making it ready for use in battle, based on the fighter stats. | |
void | prepareRoadfork (Roadfork *r) |
Takes a Roadfork pointer and initialises all the fields making it ready for use in battle. | |
void | setEnemySkills (Enemy *e, Koliseo_Temp *t_kls) |
Takes a Enemy pointer and prepares its skillSlot fields by allocating ENEMY_SKILL_SLOTS slots. | |
void | setBossSkills (Boss *b, Koliseo_Temp *t_kls) |
Takes a Boss pointer and prepares its skillSlot fields by allocating BOSS_SKILL_SLOTS slots. | |
void initArtifactsBag | ( | Fighter * | f, |
Koliseo * | kls ) |
Takes a Fighter pointer and prepares its artifactsBag field by allocating a Artifact for each artifactClass.
kls | The Koliseo used for allocations. |
f | The Fighter pointer whose artifactsBag field will be initialised. |
void initBCounters | ( | Boss * | b, |
Koliseo_Temp * | t_kls ) |
Takes a Boss pointer and prepares its counters field by allocating all the Turncounter accounted in counterIndexes.
Counters are initialised using the ordering of counterIndexes, primarily for distinguinsing what kind of function pointer will be registered in the counter. For a given Counter, only the correct pointer field is assigned and the others are left untouched.
b | The Boss pointer whose counters field will be initialised. |
t_kls | The Koliseo_Temp used for allocations. |
void initBossStats | ( | Boss * | b, |
Koliseo_Temp * | t_kls ) |
Takes one Boss pointer and initialises the boss fields.
The BossBaseStats pointer for the boss's bossClass is loaded. If the beast field at the pointer is already set before this call, atk def vel and hp of the enemy will receive a multiplicative boost equal to BSTFACTOR . Xp value will also be multiplie by 3. Notably, the level field is not set at all by this function and needs to be set by the caller. All the fields common to BossBaseStats are initialised with the base value and eventual beast boost. initBCounters() is called to init the counters field. The status field is set to Normal.
b | The Boss whose fields will be initialised. |
t_kls | The Koliseo_Temp used for allocations. |
void initConsumableBag | ( | Fighter * | f, |
Koliseo * | kls ) |
Takes a Fighter pointer and prepares its consumablesBag field by allocating a Consumable for each consumableClass.
f | The Fighter pointer whose consumablesBag field will be initialised. |
kls | The Koliseo to do allocations. |
void initCounters | ( | Fighter * | f, |
Koliseo * | kls ) |
Takes a Fighter pointer and prepares its counters field by allocating all the Turncounter accounted in counterIndexes.
Counters are initialised using the ordering of counterIndexes, primarily for distinguinsing what kind of function pointer will be registered in the counter. For a given Counter, only the correct pointer field is assigned and the others are left untouched.
f | The Fighter pointer whose counters field will be initialised. |
kls | The Koliseo used for allocation. |
void initECounters | ( | Enemy * | e, |
Koliseo_Temp * | t_kls ) |
Takes a Enemy pointer and prepares its counters field by allocating all the Turncounter accounted in counterIndexes.
Counters are initialised using the ordering of counterIndexes, primarily for distinguinsing what kind of function pointer will be registered in the counter. For a given Counter, only the correct pointer field is assigned and the others are left untouched.
e | The Enemy pointer whose counters field will be initialised. |
t_kls | The Koliseo_Temp used for allocations. |
void initEnemyStats | ( | Enemy * | e, |
Koliseo_Temp * | t_kls ) |
Takes one Enemy pointer and initialises the enemy fields.
The EnemyBaseStats pointer for the enemy's enemyClass is loaded. If the beast field at the pointer is already set before this call, atk def vel and hp of the enemy will receive a multiplicative boost equal to BSTFACTOR . Also, Xp value will be multiplied by 3. Notably, the level field is not set at all by this function and needs to be set by the caller. All the fields common to EnemyBaseStats are initialised with the base value and eventual beast boost. initECounters() is called to init the counters field. The status field is set to Normal.
e | The Enemy whose fields will be initialised. |
t_kls | The Koliseo_Temp used for allocations. |
void initEquipsBag | ( | Fighter * | f, |
Koliseo * | kls ) |
void initEquipSlots | ( | Fighter * | f, |
Koliseo * | kls ) |
void initFoePartyCounters | ( | FoeParty * | fp, |
Koliseo_Temp * | t_kls ) |
Takes a FoeParty pointer and prepares its counters field by allocating all the Turncounter accounted in counterIndexes.
Counters are initialised using the ordering of counterIndexes, primarily for distinguinsing what kind of function pointer will be registered in the counter. For a given Counter, only the correct pointer field is assigned and the others are left untouched.
fp | The FoeParty pointer whose counters field will be initialised. |
t_kls | The Koliseo_Temp used for allocations. |
void initFoePartyStats | ( | FoeParty * | fp, |
Koliseo_Temp * | t_kls ) |
Takes one FoeParty pointer and initialises the party fields.
The FoePartyBaseStats pointer for the FoeParty's foePartyClass is loaded. All the fields common to FoePartyBaseStats are initialised with the base value. initFoePartyCounters() is called to init the counters field.
fp | The FoeParty whose fields will be initialised. |
t_kls | The Koliseo_Temp used for allocations. |
void initPerks | ( | Fighter * | f, |
Koliseo * | kls ) |
Takes one Fighter and one Path pointers and initialises the fighter fields.
Luck value is set as path luck value modulo MAXPLAYERLUCK. The BaseStats pointer for the fighter's figtherClass is loaded. The stats field is initalised with all inner values at 0. setSpecials(), initCounters() are called to init the specialslots and counters fields. initEquipSlots() is called to init the equipslots field, and the relative int field are set to 0. initArtifactsFun() is called to init all the Artifact effect_fun field. All the tempboost_STAT and permboost_STAT fields are set to 0. All the fields common to BaseStats are initialised with the base value. The status field is set to Normal.
void prepareBoss | ( | Boss * | b, |
Koliseo_Temp * | t_kls ) |
Takes a Boss pointer and initialises all the fields making it ready for use in battle.
Calls initBossStats() after setting class and level, then forces a stat reset to update the stats with the level boost.
b | The allocated Boss pointer to initialise. |
t_kls | The Koliseo_Temp used for allocations. |
Takes a Chest and Fighter pointers and initialises all the fields in chest making it ready for use in battle, using fighter stats to influence init.
Calls initChest() after setting class.
void prepareFoeParty | ( | FoeParty * | fp, |
int | partysize, | ||
int | roomindex, | ||
Koliseo_Temp * | t_kls ) |
Takes a FoeParty pointer, a size for complete party, and an integer for the current room index, and initialises all the fields making the FoeParty ready for use in battle.
Calls initFoePartyStats() after setting class and level
fp | The allocated FoeParty pointer to initialise. |
partysize | Size of party. |
roomindex | Index of current room. |
t_kls | The Koliseo_Temp used for allocations. |
void prepareRoadfork | ( | Roadfork * | r | ) |
void prepareRoomEnemy | ( | Enemy * | e, |
int | roomindex, | ||
int | enemiesInRoom, | ||
int | enemyindex, | ||
Koliseo_Temp * | t_kls ) |
Takes a Enemy and three integers denoting current room index, how many enemies are in the room and current enemy index.
The class field of the enemy is randomised according to ENEMYCLASSESMAX. If the room index is multiple of BEASTROOM and the enemy is the last one in he room, its beast field is set to 1. The EnemyBaseStats pointer for the enemy's enemyClass is loaded and the level field for the enemy is set to base level, before increasing. initEnemyStats() is called to set all stat fields and statResetEnemy() is called with force=true to apply the boosted stats to leveled enemies.
e | The Enemy pointer to prepare. |
roomindex | The index of current room. |
enemiesInRoom | The number of enemies in current room. |
enemyindex | The index of current enemy. |
t_kls | The Koliseo_Temp used for allocations. |
Takes a Treasure and Fighter pointer and initialises all the treasure fields making it ready for use in battle, based on the fighter stats.
Calls initTreasure() after setting class.
void setBossSkills | ( | Boss * | b, |
Koliseo_Temp * | t_kls ) |
Takes a Boss pointer and prepares its skillSlot fields by allocating BOSS_SKILL_SLOTS slots.
Skill slots are initialised.
t_kls | The Koliseo_Temp used for allocations. |
b | The Boss pointer whose skill slots will be initialised. |
void setEnemySkills | ( | Enemy * | e, |
Koliseo_Temp * | t_kls ) |
Takes a Enemy pointer and prepares its skillSlot fields by allocating ENEMY_SKILL_SLOTS slots.
Skill slots are initialised.
t_kls | The Koliseo_Temp used for allocations. |
e | The Enemy pointer whose skill slots will be initialised. |
void setSkills | ( | Fighter * | f, |
Koliseo * | kls ) |
Takes a Fighter pointer and prepares its skillSlot fields by allocating FIGHTER_SKILL_SLOTS slots.
Skill slots are initialised.
kls | The Koliseo used for allocations. |
f | The Fighter pointer whose skill slots will be initialised. |