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

Serialized Enemy. More...

#include <ser_core.h>

Collaboration diagram for SerEnemy:

Data Fields

int8_t index
 Defines position inside containing foeParty.
 
int32_t class
 Defines which kind of enemyClass the instance relates to.
 
int8_t hp
 Current hp value.
 
int8_t atk
 Current atk value.
 
int8_t def
 Current def value.
 
int8_t vel
 Current vel value.
 
int8_t level
 Level value.
 
int8_t luck
 Luck value.
 
int8_t xp
 Xp value given on death.
 
int8_t totalhp
 Full hp value.
 
int8_t energy
 Current energy value.
 
int8_t totalenergy
 Full energy value.
 
int8_t stamina
 Current stamina value.
 
int8_t totalstamina
 Full stamina value.
 
int32_t status
 Defines active fighterStatus.
 
int8_t beast
 Flag defining the instance as "beast" if set.
 
SerSkillslot skills [ENEMY_SKILL_SLOTS+1]
 Array with all the SerSkillslot.
 
SerTurncounter counters [COUNTERSMAX+1]
 Array with all the SerTurncounter.
 
int8_t turnboost_atk
 Current temp boost value for atk.
 
int8_t turnboost_def
 Current temp boost value for def.
 
int8_t turnboost_vel
 Current temp boost value for vel.
 
int8_t turnboost_enr
 Current temp boost value for enr.
 
int8_t prize
 Amount of currency dropped on defeat.
 

Detailed Description

Serialized Enemy.

Packed struct. Can be turned into an Enemy with deser_Enemy(). Can be obtained from a Enemy with ser_Enemy().

See also
Enemy
deser_Enemy()
ser_Enemy()

Field Documentation

◆ atk

int8_t SerEnemy::atk

Current atk value.

◆ beast

int8_t SerEnemy::beast

Flag defining the instance as "beast" if set.

◆ class

int32_t SerEnemy::class

Defines which kind of enemyClass the instance relates to.

◆ counters

SerTurncounter SerEnemy::counters[COUNTERSMAX+1]

Array with all the SerTurncounter.

◆ def

int8_t SerEnemy::def

Current def value.

◆ energy

int8_t SerEnemy::energy

Current energy value.

◆ hp

int8_t SerEnemy::hp

Current hp value.

◆ index

int8_t SerEnemy::index

Defines position inside containing foeParty.

◆ level

int8_t SerEnemy::level

Level value.

◆ luck

int8_t SerEnemy::luck

Luck value.

◆ prize

int8_t SerEnemy::prize

Amount of currency dropped on defeat.

◆ skills

SerSkillslot SerEnemy::skills[ENEMY_SKILL_SLOTS+1]

Array with all the SerSkillslot.

◆ stamina

int8_t SerEnemy::stamina

Current stamina value.

◆ status

int32_t SerEnemy::status

Defines active fighterStatus.

◆ totalenergy

int8_t SerEnemy::totalenergy

Full energy value.

◆ totalhp

int8_t SerEnemy::totalhp

Full hp value.

◆ totalstamina

int8_t SerEnemy::totalstamina

Full stamina value.

◆ turnboost_atk

int8_t SerEnemy::turnboost_atk

Current temp boost value for atk.

◆ turnboost_def

int8_t SerEnemy::turnboost_def

Current temp boost value for def.

◆ turnboost_enr

int8_t SerEnemy::turnboost_enr

Current temp boost value for enr.

◆ turnboost_vel

int8_t SerEnemy::turnboost_vel

Current temp boost value for vel.

◆ vel

int8_t SerEnemy::vel

Current vel value.

◆ xp

int8_t SerEnemy::xp

Xp value given on death.


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