DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
CTextureAnime Class Reference

#include <textureanime.hpp>

Public Member Functions

void TexAnime (int texture_block)
 
void Initialize (CTexAnimeData *records, int count)
 
 CTextureAnime (CTexAnimeData *records=0, int count=0)
 
CTexAnimeData * NewTexAnimeData ()
 
CTexAnimeData * NewTexAnimeGroupData (int group)
 
int EnterTexAnime (CTexAnimeData *source)
 
void DisableAll ()
 
void Enable (int group)
 
void Disable (int group)
 
void LoadCFGFile (char *script, int script_size)
 

Public Attributes

s32 enabled [24]
 
CTexAnimeData * first [24]
 
CTexAnimeData * last [24]
 
CTexAnimeData * current [24]
 
s32 frame [24]
 
CTexAnimeData * data
 
s32 data_count
 
u8 unk_1e8 [8]
 

Static Public Attributes

static s32 stop_anime
 

Detailed Description

Plays groups of texture animation records from a caller-supplied pool.

Definition at line 77 of file textureanime.hpp.

Constructor & Destructor Documentation

◆ CTextureAnime()

CTextureAnime::CTextureAnime ( CTexAnimeData *  records = 0,
int  count = 0 
)

Creates an animation player using the supplied record pool.

Mangled name:
__ct__13CTextureAnimeFP13CTexAnimeDatai
Address:
0x167870
Size:
0x30

Definition at line 230 of file textureanime.cpp.

Member Function Documentation

◆ TexAnime()

void CTextureAnime::TexAnime ( int  texture_block)

Uploads one animation group's current textures to the graphics synthesizer.

Mangled name:
TexAnime__13CTextureAnimeFi
Address:
0x167170
Size:
0x6B0

Definition at line 59 of file textureanime.cpp.

◆ Initialize()

void CTextureAnime::Initialize ( CTexAnimeData *  records,
int  count 
)

Assigns the record pool and clears every animation group.

Mangled name:
Initialize__13CTextureAnimeFP13CTexAnimeDatai
Address:
0x167820
Size:
0x48

Definition at line 217 of file textureanime.cpp.

◆ NewTexAnimeData()

CTexAnimeData * CTextureAnime::NewTexAnimeData ( )

Allocates the next record from the texture-animation pool.

Mangled name:
NewTexAnimeData__13CTextureAnimeFv
Address:
0x1678A0
Size:
0x60
Return type:
Not recovered.

Definition at line 234 of file textureanime.cpp.

◆ NewTexAnimeGroupData()

CTexAnimeData * CTextureAnime::NewTexAnimeGroupData ( int  group)

Starts a new animation group at the next available pool record.

Mangled name:
NewTexAnimeGroupData__13CTextureAnimeFi
Address:
0x167900
Size:
0xDC
Return type:
Not recovered.

Definition at line 250 of file textureanime.cpp.

◆ EnterTexAnime()

int CTextureAnime::EnterTexAnime ( CTexAnimeData *  source)

Appends one texture-animation record to its selected group.

Mangled name:
EnterTexAnime__13CTextureAnimeFP13CTexAnimeData
Address:
0x1679E0
Size:
0xF8
Return type:
Not recovered.

Definition at line 281 of file textureanime.cpp.

◆ DisableAll()

void CTextureAnime::DisableAll ( )

Stops and resets every animation group.

Mangled name:
DisableAll__13CTextureAnimeFv
Address:
0x167AE0
Size:
0x58

Definition at line 305 of file textureanime.cpp.

◆ Enable()

void CTextureAnime::Enable ( int  group)

Enables playback of one animation group.

Mangled name:
Enable__13CTextureAnimeFi
Address:
0x167B40
Size:
0x34

Definition at line 311 of file textureanime.cpp.

◆ Disable()

void CTextureAnime::Disable ( int  group)

Stops one animation group and resets its playback position.

Mangled name:
Disable__13CTextureAnimeFi
Address:
0x167B80
Size:
0x3C

Definition at line 319 of file textureanime.cpp.

◆ LoadCFGFile()

void CTextureAnime::LoadCFGFile ( char *  script,
int  script_size 
)

Runs the texture-animation commands of a configuration script held in memory.

Mangled name:
LoadCFGFile__13CTextureAnimeFPci
Address:
0x167BC0
Size:
0xB4
Return type:
Not recovered.

Definition at line 347 of file textureanime.cpp.

Member Data Documentation

◆ stop_anime

s32 CTextureAnime::stop_anime
static

Stops every texture animation from advancing while it is non-zero.

Mangled name:
stop_anime__13CTextureAnime

Definition at line 84 of file textureanime.hpp.

◆ enabled

s32 CTextureAnime::enabled[24]

Enables playback for each animation group.

Definition at line 86 of file textureanime.hpp.

◆ first

CTexAnimeData* CTextureAnime::first[24]

Points to each group's first animation record.

Definition at line 87 of file textureanime.hpp.

◆ last

CTexAnimeData* CTextureAnime::last[24]

Points to each group's last animation record.

Definition at line 88 of file textureanime.hpp.

◆ current

CTexAnimeData* CTextureAnime::current[24]

Points to the record being played by each group.

Definition at line 89 of file textureanime.hpp.

◆ frame

s32 CTextureAnime::frame[24]

Counts playback frames for each group's current record.

Definition at line 90 of file textureanime.hpp.

◆ data

CTexAnimeData* CTextureAnime::data

Holds the animation record pool.

Definition at line 91 of file textureanime.hpp.

◆ data_count

s32 CTextureAnime::data_count

Gives the number of records in the pool.

Definition at line 92 of file textureanime.hpp.

◆ unk_1e8

u8 CTextureAnime::unk_1e8[8]

Definition at line 93 of file textureanime.hpp.