World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Класс Icon

#include <IconFrameTable.h>

+ Граф связей класса Icon:

Открытые члены

 Icon ()
 
void SetAnimationName (const char *name)
 
const char * GetAnimationName () const
 
void SetAnimLength (unsigned int anim_length)
 
unsigned int GetAnimLength () const
 
void SetAnimTime (unsigned int anim_time)
 
unsigned int GetAnimTime () const
 
TextureGetTexture ()
 

Открытые атрибуты

char pTextureName [12]
 
int16_t uFlags
 
int id
 

Защищенные данные

char anim_name [64]
 
unsigned int anim_length
 
unsigned int anim_time
 
Textureimg
 

Подробное описание

См. определение в файле IconFrameTable.h строка 8

Конструктор(ы)

◆ Icon()

Icon::Icon ( )
inline

См. определение в файле IconFrameTable.h строка 10

10 : img(nullptr) {}

Методы

◆ SetAnimationName()

void Icon::SetAnimationName ( const char *  name)
inline

См. определение в файле IconFrameTable.h строка 12

12  {
13  strcpy(this->anim_name, name);
14  }

Перекрестные ссылки anim_name.

Используется в IconFrame_MM7::Deserialize().

+ Граф вызова функции:

◆ GetAnimationName()

const char* Icon::GetAnimationName ( ) const
inline

См. определение в файле IconFrameTable.h строка 15

15 { return anim_name; }

Перекрестные ссылки anim_name.

Используется в GameUI_DrawHiredNPCs() и IconFrame_MM7::Serialize().

+ Граф вызова функции:

◆ SetAnimLength()

void Icon::SetAnimLength ( unsigned int  anim_length)
inline

См. определение в файле IconFrameTable.h строка 17

17  {
18  this->anim_length = anim_length;
19  }

Перекрестные ссылки anim_length.

Используется в IconFrame_MM7::Deserialize().

+ Граф вызова функции:

◆ GetAnimLength()

unsigned int Icon::GetAnimLength ( ) const
inline

См. определение в файле IconFrameTable.h строка 20

20 { return this->anim_length; }

Перекрестные ссылки anim_length.

Используется в CastSpellInfoHelpers::_427E01_cast_spell(), IconFrameTable::GetFrame(), IconFrame_MM7::Serialize(), SpellFxRenderer::SetPlayerBuffAnim(), stru262_TurnBased::Start(), ui_play_food_anim() и ui_play_gold_anim().

+ Граф вызова функции:

◆ SetAnimTime()

void Icon::SetAnimTime ( unsigned int  anim_time)
inline

См. определение в файле IconFrameTable.h строка 22

22  {
23  this->anim_time = anim_time;
24  }

Перекрестные ссылки anim_time.

Используется в IconFrame_MM7::Deserialize().

+ Граф вызова функции:

◆ GetAnimTime()

unsigned int Icon::GetAnimTime ( ) const
inline

См. определение в файле IconFrameTable.h строка 25

25 { return this->anim_time; }

Перекрестные ссылки anim_time.

Используется в IconFrameTable::GetFrame() и IconFrame_MM7::Serialize().

+ Граф вызова функции:

◆ GetTexture()

Texture * Icon::GetTexture ( )

См. определение в файле IconFrameTable.cpp строка 9

9  {
10  if (!this->img) {
11  this->img = assets->GetImage_ColorKey(this->pTextureName, 0x7FF);
12  }
13 
14  return this->img;
15 }

Перекрестные ссылки assets, AssetsManager::GetImage_ColorKey(), img и pTextureName.

Используется в GUIProgressBar::Draw(), SpellFxRenderer::DrawPlayerBuffAnims(), OtherOverlayList::DrawTurnBasedIcon(), GameUI_DrawHiredNPCs(), GameUI_DrawPartySpells(), GameUI_DrawTorchlightAndWizardEye() и GUIWindow_PartyCreation::Update().

+ Граф вызовов:
+ Граф вызова функции:

Данные класса

◆ pTextureName

char Icon::pTextureName[12]
  • 000 *‍/ char pAnimationName[12];

См. определение в файле IconFrameTable.h строка 30

Используется в IconFrame_MM7::Deserialize(), GetTexture() и IconFrame_MM7::Serialize().

◆ uFlags

int16_t Icon::uFlags

См. определение в файле IconFrameTable.h строка 33

Используется в IconFrame_MM7::Deserialize() и IconFrame_MM7::Serialize().

◆ id

int Icon::id
  • 01E *‍/ uint16_t uTextureID;

См. определение в файле IconFrameTable.h строка 35

Используется в GameUI_DrawTorchlightAndWizardEye(), UIAnimation_MM7::Serialize() и SetUserInterface().

◆ anim_name

char Icon::anim_name[64]
protected

См. определение в файле IconFrameTable.h строка 38

Используется в GetAnimationName() и SetAnimationName().

◆ anim_length

unsigned int Icon::anim_length
protected

См. определение в файле IconFrameTable.h строка 41

Используется в GetAnimLength() и SetAnimLength().

◆ anim_time

unsigned int Icon::anim_time
protected

См. определение в файле IconFrameTable.h строка 42

Используется в GetAnimTime() и SetAnimTime().

◆ img

Texture* Icon::img
protected

См. определение в файле IconFrameTable.h строка 46

Используется в GetTexture().


Объявления и описания членов классов находятся в файлах:
Icon::anim_length
unsigned int anim_length
Definition: IconFrameTable.h:41
Icon::anim_time
unsigned int anim_time
Definition: IconFrameTable.h:42
AssetsManager::GetImage_ColorKey
Texture * GetImage_ColorKey(const String &name, uint16_t colorkey)
Definition: AssetsManager.cpp:34
Icon::pTextureName
char pTextureName[12]
Definition: IconFrameTable.h:30
name
EGLImageKHR EGLint * name
Definition: SDL_egl.h:1497
assets
AssetsManager * assets
Definition: AssetsManager.cpp:12
Icon::anim_name
char anim_name[64]
Definition: IconFrameTable.h:38
Icon::img
Texture * img
Definition: IconFrameTable.h:46
img
GLint GLvoid * img
Definition: SDL_opengl.h:1980