ManaPlus
Public Member Functions | Data Fields
HorseInfo Struct Reference

#include <horseinfo.h>

Public Member Functions

 HorseInfo ()
 

Data Fields

std::vector< SpriteReference * > downSprites
 
std::vector< SpriteReference * > upSprites
 
HorseOffset offsets [10]
 

Detailed Description

Definition at line 32 of file horseinfo.h.

Constructor & Destructor Documentation

◆ HorseInfo()

HorseInfo::HorseInfo ( )
inline

Definition at line 34 of file horseinfo.h.

34  :
35  downSprites(),
36  upSprites(),
37  offsets()
38  {
39  for (int f = 0; f < 10; f ++)
40  {
41  offsets[f].upOffsetX = 0;
42  offsets[f].upOffsetY = 0;
43  offsets[f].downOffsetX = 0;
44  offsets[f].downOffsetY = 0;
45  offsets[f].riderOffsetX = 0;
46  offsets[f].riderOffsetY = 0;
47  }
48  }
std::vector< SpriteReference * > upSprites
Definition: horseinfo.h:53
std::vector< SpriteReference * > downSprites
Definition: horseinfo.h:52
HorseOffset offsets[10]
Definition: horseinfo.h:54
int downOffsetY
Definition: horseoffset.h:43
int riderOffsetY
Definition: horseoffset.h:45
int downOffsetX
Definition: horseoffset.h:42
int riderOffsetX
Definition: horseoffset.h:44

References HorseOffset::downOffsetX, HorseOffset::downOffsetY, offsets, HorseOffset::riderOffsetX, HorseOffset::riderOffsetY, HorseOffset::upOffsetX, and HorseOffset::upOffsetY.

Field Documentation

◆ downSprites

std::vector<SpriteReference*> HorseInfo::downSprites

Definition at line 52 of file horseinfo.h.

Referenced by HorseDB::load(), and HorseDB::unload().

◆ offsets

HorseOffset HorseInfo::offsets[10]

Definition at line 54 of file horseinfo.h.

Referenced by HorseInfo(), loadOffset(), and loadRiderOffset().

◆ upSprites

std::vector<SpriteReference*> HorseInfo::upSprites

Definition at line 53 of file horseinfo.h.

Referenced by HorseDB::load(), and HorseDB::unload().


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