ParamTableManager Class Reference
#include <ParamTableManager.h>
![](../class_param_table_manager.png)
# Public Member Functions | |
void | reset () |
Reset the animation coordinator factory's state. | |
uint32 | configure (int32 availableBgmapSegmentsForParamTable) |
uint32 | allocate (BgmapSprite bgmapSprite) |
void | free (BgmapSprite bgmapSprite) |
void | defragment (bool deferred) |
uint32 | getParamTableEnd () |
# Static Public Member Functions | |
static void | print (int32 x, int32 y) |
# Protected Attributes | |
uint32 | size |
Total size of param table. | |
uint32 | usedBytes |
Number of used bytes. | |
VirtualList | bgmapSprites |
List of sprites with allocated param tables. | |
ParamTableFreeData | paramTableFreeData |
Struct used to keep track of the next free block in param table space. | |
BgmapSprite | previouslyMovedBgmapSprite |
uint32 | paramTableBase |
uint32 | paramTableEnd |
# Additional Inherited Members | |
![]() | |
void | constructor () |
Class' constructor. | |
const void * | getVTable () |
bool | mutateTo (const void *targetClass) |
![]() | |
static Object | getCast (void *object, ClassPointer targetClassGetClassMethod, ClassPointer baseClassGetClassMethod) |
![]() | |
void * | vTable |
Pointer to the class's virtual table. |
# Detailed Description
Class ParamTableManager
Inherits from Object
Manages param table space allocating and releasing blocks in it.
Definition at line 96 of file ParamTableManager.h.
# Member Function Documentation
# allocate()
secure uint32 ParamTableManager::allocate | ( | BgmapSprite | bgmapSprite | ) |
Allocate a param table for the provided sprite
- Parameters
-
bgmapSprite Sprite for which a param table will be allocated
Definition at line 126 of file ParamTableManager.c.
# configure()
Retrieve the param table displacement in bytes used to keep track of the start address of param table space.
- Parameters
-
availableBgmapSegmentsForParamTable Number of available BGMAP segments for the param tables
- Returns
- Displacement in bytes to keep track of the start address of param table space
Definition at line 94 of file ParamTableManager.c.
# defragment()
secure void ParamTableManager::defragment | ( | bool | deferred | ) |
Defragment param table space.
- Parameters
-
deferred Flag to defragment param table memory over time
Definition at line 236 of file ParamTableManager.c.
# free()
secure void ParamTableManager::free | ( | BgmapSprite | bgmapSprite | ) |
Free the param table allocated for the provided sprite.
- Parameters
-
bgmapSprite Sprite whose param table has to be freed
Definition at line 199 of file ParamTableManager.c.
# getParamTableEnd()
uint32 ParamTableManager::getParamTableEnd | ( | ) |
Retrieve the address where the param table ends.
- Returns
- Address where the param table ends
Definition at line 290 of file ParamTableManager.c.
# print()
Print the information about param table space usage.
- Parameters
-
x Screen x coordinate where to print y Screen y coordinate where to print
Definition at line 40 of file ParamTableManager.c.
# reset()
secure void ParamTableManager::reset | ( | ) |
Reset the animation coordinator factory's state.
Definition at line 70 of file ParamTableManager.c.
# Member Data Documentation
# bgmapSprites
|
protected |
List of sprites with allocated param tables.
Definition at line 107 of file ParamTableManager.h.
# paramTableBase
|
protected |
Definition at line 117 of file ParamTableManager.h.
# paramTableEnd
|
protected |
Definition at line 120 of file ParamTableManager.h.
# paramTableFreeData
|
protected |
Struct used to keep track of the next free block in param table space.
Definition at line 110 of file ParamTableManager.h.
# previouslyMovedBgmapSprite
|
protected |
Cache of the last sprite whose param table was moved during the defragmentation of param table space
Definition at line 114 of file ParamTableManager.h.
# size
|
protected |
Total size of param table.
Definition at line 101 of file ParamTableManager.h.
# usedBytes
|
protected |
Number of used bytes.
Definition at line 104 of file ParamTableManager.h.
The documentation for this class was generated from the following files:
- VUEngine-Core/source/Component/VisualComponent/Sprite/ParamTableManager.h
- VUEngine-Core/source/Component/VisualComponent/Sprite/ParamTableManager.c