Unit 'ctZenGL' Package
[Overview][Types][Classes][Index] [#pl_zengl]

TSprite

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Declaration

Source position: ctzengl.pas line 42

type TSprite = class

protected

  FWin: TZenWin;

  

  Elasticity: Double;

  

  Friction: Double;

  

  FStatic: Boolean;

  

  procedure AddCircle();

  

  procedure AddSegment();

  

  procedure AddPoly();

  

  function MomentForPoly();

  

  procedure InitShape; virtual; abstract;

  

public

  constructor Create();

  

  procedure Remove;

  

  destructor Destroy; override;

  

  procedure OnDraw(); virtual; abstract;

  

  procedure DrawWireFrame();

  

  procedure OnElapse; virtual;

  

  function Bounds; virtual;

  

  procedure ApplyForce();

  

  procedure ApplyImpulse();

  

  property Static: Boolean; [r]

  

  property Game: TZenWin; [r]

  

  property Position: TPointF; [rw]

  

  property Speed: TPointF; [r]

  

  property Angle: Double; [rw]

  

  property Moment: Double; [rw]

  

  property AngularVelocity: Double; [rw]

  

  property ContactCount: Integer; [r]

  

  property Contact []: TContact; [r]

  

  function IndexOfContact();

  

end;

Inheritance

TSprite

  

|

TObject



CT Web help

CodeTyphon Studio