| Description | Hierarchy | Fields | Methods | Properties |
type TAd2DSpriteList = class(TObject)
A list used to optimize the spriteengine
![]() |
procedure Expand(X,Y:integer); |
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
procedure Add(AItem:TSprite;X,Y:integer;Width:integer=1;Height:integer=1); |
![]() |
procedure Delete(AItem:TSprite;X,Y:integer;Width:integer=1;Height:integer=1); |
![]() |
procedure Optimize; |
![]() |
property Items[X,Y:integer]: TSpriteList read GetItem; |
![]() |
property StartX: integer read FStartX; |
![]() |
property EndX: integer read FEndX; |
![]() |
property StartY: integer read FStartY; |
![]() |
property EndY: integer read FEndY; |
![]() |
property Unoptimized: boolean read FUnOptimized; |
![]() |
procedure Expand(X,Y:integer); |
|
Expands the field. | |
![]() |
constructor Create; |
|
Creates the list and initializes all values | |
![]() |
destructor Destroy; override; |
|
Destroys the list and all sprites within | |
![]() |
procedure Add(AItem:TSprite;X,Y:integer;Width:integer=1;Height:integer=1); |
|
Add a sprite on specific coordinates to the field | |
![]() |
procedure Delete(AItem:TSprite;X,Y:integer;Width:integer=1;Height:integer=1); |
|
Delete a sprite item from the list | |
![]() |
procedure Optimize; |
|
Optimizes the field. Removes empty rows and reorganizes the map structure | |
![]() |
property Items[X,Y:integer]: TSpriteList read GetItem; |
|
Returns the list of sprites in a field | |
![]() |
property StartX: integer read FStartX; |
|
The start of the x coordinate | |
![]() |
property EndX: integer read FEndX; |
|
The end of the x coordinate | |
![]() |
property StartY: integer read FStartY; |
|
The start of the y coordinate | |
![]() |
property EndY: integer read FEndY; |
|
The end of the y coordinate | |
![]() |
property Unoptimized: boolean read FUnOptimized; |
|
Returns weather the field has to be optimized | |