helapordo 1.4.12
Loading...
Searching...
No Matches
Fighter Struct Reference

Represents the entity initialised from a fighterClass. More...

#include <game_core.h>

Collaboration diagram for Fighter:

Data Fields

char name [FIGHTER_NAME_BUFSIZE]
 Name string.
 
fighterClass class
 Defines which kind of fighterClass the instance relates to.
 
int hp
 Current hp value.
 
int atk
 Current atk value.
 
int def
 Current def value.
 
int vel
 Current vel value.
 
int level
 Current level value.
 
int luck
 Current luck value.
 
int totalxp
 Lifetime xp value.
 
int currentlevelxp
 Xp gained for the current level.
 
int totallevelxp
 Xp needed to level up.
 
int totalhp
 Full hp value.
 
fighterStatus status
 Defines active fighterStatus.
 
int energy
 Current energy value.
 
int totalenergy
 Full energy value.
 
int stamina
 Current stamina value.
 
int totalstamina
 Full stamina value.
 
Specialslotspecials [SPECIALSMAX+1]
 Array with all the Specialslot.
 
Skillslotskills [FIGHTER_SKILL_SLOTS+1]
 Array with all the Skillslot.
 
struct Turncountercounters [COUNTERSMAX+1]
 Array with all the Turncounter pointers.
 
int turnboost_atk
 Current temp boost value for atk.
 
int turnboost_def
 Current temp boost value for def.
 
int turnboost_vel
 Current temp boost value for vel.
 
int turnboost_enr
 Current temp boost value for enr.
 
int perksCount
 Keeps track of how many perks are active.
 
Perkperks [PERKSMAX+1]
 Array with all the Perk.
 
struct Equipslotequipslots [EQUIPZONES+1]
 Array with all the Equipslot.
 
struct EquipequipsBag [EQUIPSBAGSIZE+1]
 Array with all the Equip found.
 
ConsumableconsumablesBag [CONSUMABLESMAX+1]
 Array with all the Consumables found.
 
struct ArtifactartifactsBag [ARTIFACTSMAX+1]
 Array with all the Artifacts found.
 
int equipsBagOccupiedSlots
 Keeps track of how many slots are occupied.
 
int earliestBagSlot
 Keeps track of first available spot.
 
int permboost_atk
 Current temp boost value for atk.
 
int permboost_def
 Current temp boost value for def.
 
int permboost_vel
 Current temp boost value for vel.
 
int permboost_enr
 Current temp boost value for enr.
 
int equipboost_atk
 Current equip boost value for atk.
 
int equipboost_def
 Current equip boost value for def.
 
int equipboost_vel
 Current equip boost value for vel.
 
int equipboost_enr
 Current equip boost value for enr.
 
countStatsstats
 Pointer to countStats instance.
 
int balance
 Amount of currency owned.
 
int keys_balance
 Amount of keys owned.
 
char sprite [8][20]
 Char matrix to hold the encoded sprite.
 
int floor_x
 Current x position in floor.
 
int floor_y
 Current y position in floor.
 

Detailed Description

Represents the entity initialised from a fighterClass.

See also
fighterClass
fighterStatus
initStats()
Specialslot
Turncounter
Equipslot
countStats

Field Documentation

◆ artifactsBag

struct Artifact* Fighter::artifactsBag[ARTIFACTSMAX+1]

Array with all the Artifacts found.

◆ atk

int Fighter::atk

Current atk value.

◆ balance

int Fighter::balance

Amount of currency owned.

◆ class

fighterClass Fighter::class

Defines which kind of fighterClass the instance relates to.

◆ consumablesBag

Consumable* Fighter::consumablesBag[CONSUMABLESMAX+1]

Array with all the Consumables found.

◆ counters

struct Turncounter* Fighter::counters[COUNTERSMAX+1]

Array with all the Turncounter pointers.

◆ currentlevelxp

int Fighter::currentlevelxp

Xp gained for the current level.

◆ def

int Fighter::def

Current def value.

◆ earliestBagSlot

int Fighter::earliestBagSlot

Keeps track of first available spot.

◆ energy

int Fighter::energy

Current energy value.

◆ equipboost_atk

int Fighter::equipboost_atk

Current equip boost value for atk.

◆ equipboost_def

int Fighter::equipboost_def

Current equip boost value for def.

◆ equipboost_enr

int Fighter::equipboost_enr

Current equip boost value for enr.

◆ equipboost_vel

int Fighter::equipboost_vel

Current equip boost value for vel.

◆ equipsBag

struct Equip* Fighter::equipsBag[EQUIPSBAGSIZE+1]

Array with all the Equip found.

◆ equipsBagOccupiedSlots

int Fighter::equipsBagOccupiedSlots

Keeps track of how many slots are occupied.

◆ equipslots

struct Equipslot* Fighter::equipslots[EQUIPZONES+1]

Array with all the Equipslot.

◆ floor_x

int Fighter::floor_x

Current x position in floor.

◆ floor_y

int Fighter::floor_y

Current y position in floor.

◆ hp

int Fighter::hp

Current hp value.

◆ keys_balance

int Fighter::keys_balance

Amount of keys owned.

◆ level

int Fighter::level

Current level value.

◆ luck

int Fighter::luck

Current luck value.

◆ name

char Fighter::name[FIGHTER_NAME_BUFSIZE]

Name string.

◆ perks

Perk* Fighter::perks[PERKSMAX+1]

Array with all the Perk.

◆ perksCount

int Fighter::perksCount

Keeps track of how many perks are active.

◆ permboost_atk

int Fighter::permboost_atk

Current temp boost value for atk.

◆ permboost_def

int Fighter::permboost_def

Current temp boost value for def.

◆ permboost_enr

int Fighter::permboost_enr

Current temp boost value for enr.

◆ permboost_vel

int Fighter::permboost_vel

Current temp boost value for vel.

◆ skills

Skillslot* Fighter::skills[FIGHTER_SKILL_SLOTS+1]

Array with all the Skillslot.

◆ specials

Specialslot* Fighter::specials[SPECIALSMAX+1]

Array with all the Specialslot.

◆ sprite

char Fighter::sprite[8][20]

Char matrix to hold the encoded sprite.

◆ stamina

int Fighter::stamina

Current stamina value.

◆ stats

countStats* Fighter::stats

Pointer to countStats instance.

◆ status

fighterStatus Fighter::status

Defines active fighterStatus.

◆ totalenergy

int Fighter::totalenergy

Full energy value.

◆ totalhp

int Fighter::totalhp

Full hp value.

◆ totallevelxp

int Fighter::totallevelxp

Xp needed to level up.

◆ totalstamina

int Fighter::totalstamina

Full stamina value.

◆ totalxp

int Fighter::totalxp

Lifetime xp value.

◆ turnboost_atk

int Fighter::turnboost_atk

Current temp boost value for atk.

◆ turnboost_def

int Fighter::turnboost_def

Current temp boost value for def.

◆ turnboost_enr

int Fighter::turnboost_enr

Current temp boost value for enr.

◆ turnboost_vel

int Fighter::turnboost_vel

Current temp boost value for vel.

◆ vel

int Fighter::vel

Current vel value.


The documentation for this struct was generated from the following file: