Class TSpriteEngine

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TSpriteEngine = class(TSprite)

Description

The spriteengine itsself.

Hierarchy

Overview

Methods

Public constructor Create(AParent:TAdDraw); reintroduce;
Public destructor Destroy; override;
Public procedure Dead; override;
Public procedure Move(TimeGap: double);

Properties

Public property CollisionCount: integer read FCollisionCount write FCollisionCount;
Public property CollisionSprite: TSprite read FCollisionSprite write FCollisionSprite;
Public property CollisionDone: boolean read FCollisionDone write FCollisionDone;
Public property CollisionRect: TAdRect read FCollisionRect write FCollisionRect;
Public property SurfaceRect: TAdRect read FSurfaceRect;
Published property Surface: TAdRenderingSurface read FSurface write SetSurface;

Description

Methods

Public constructor Create(AParent:TAdDraw); reintroduce;

Creates an instance of TSprite

Public destructor Destroy; override;

Destroyes the instance

Public procedure Dead; override;

Kills all sprites which want to be dead.

Public procedure Move(TimeGap: double);

Calls the DoMove function of the instance and all child's move function.

Properties

Public property CollisionCount: integer read FCollisionCount write FCollisionCount;

The count of sprites which collide to the collision sprite.

Public property CollisionSprite: TSprite read FCollisionSprite write FCollisionSprite;

The sprite which wants to know, whether it collides.

Public property CollisionDone: boolean read FCollisionDone write FCollisionDone;

If this value is set to true, the collision aborts.

Public property CollisionRect: TAdRect read FCollisionRect write FCollisionRect;

The rect the collision takes place in.

Public property SurfaceRect: TAdRect read FSurfaceRect;

The size of the surface.

Published property Surface: TAdRenderingSurface read FSurface write SetSurface;

The parent addraw surface.

SourceForge.net Logo


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