Class TAd2DSpriteList

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAd2DSpriteList = class(TObject)

Description

A list used to optimize the spriteengine

Hierarchy

Overview

Methods

Public procedure Expand(X,Y:integer);
Public constructor Create;
Public destructor Destroy; override;
Public procedure Add(AItem:TSprite;X,Y:integer;Width:integer=1;Height:integer=1);
Public procedure Delete(AItem:TSprite;X,Y:integer;Width:integer=1;Height:integer=1);
Public procedure Optimize;

Properties

Public property Items[X,Y:integer]: TSpriteList read GetItem;
Public property StartX: integer read FStartX;
Public property EndX: integer read FEndX;
Public property StartY: integer read FStartY;
Public property EndY: integer read FEndY;
Public property Unoptimized: boolean read FUnOptimized;

Description

Methods

Public procedure Expand(X,Y:integer);

Expands the field.

Public constructor Create;

Creates the list and initializes all values

Public destructor Destroy; override;

Destroys the list and all sprites within

Public procedure Add(AItem:TSprite;X,Y:integer;Width:integer=1;Height:integer=1);

Add a sprite on specific coordinates to the field

Public procedure Delete(AItem:TSprite;X,Y:integer;Width:integer=1;Height:integer=1);

Delete a sprite item from the list

Public procedure Optimize;

Optimizes the field. Removes empty rows and reorganizes the map structure

Properties

Public property Items[X,Y:integer]: TSpriteList read GetItem;

Returns the list of sprites in a field

Public property StartX: integer read FStartX;

The start of the x coordinate

Public property EndX: integer read FEndX;

The end of the x coordinate

Public property StartY: integer read FStartY;

The start of the y coordinate

Public property EndY: integer read FEndY;

The end of the y coordinate

Public property Unoptimized: boolean read FUnOptimized;

Returns weather the field has to be optimized

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:32:00