C# Class Vtj.Gaming.GameObject

Inheritance: IDisposable
Show file Open project: Ventajou/Space-Dinosaurs Class Usage Examples

Public Properties

Property Type Description
AnimationSequences AnimationSequence>.Dictionary
CurrentAnimation string
CurrentFrame int
Delay int
Location Vtj.Gaming.Vector3D
Objects List
Scale float
Visible bool

Protected Properties

Property Type Description
Started bool

Public Methods

Method Description
Clear ( ) : void
Collides ( GameObject target ) : bool
Compare ( GameObject x, GameObject y ) : int
Create ( ImageElement defaultImage, float handleX, float handleY ) : GameObject
Dispose ( ) : void
Draw ( System.Html.Media.Graphics.CanvasContext2D context ) : void
DrawObjects ( System.Html.Media.Graphics.CanvasContext2D context ) : void
GameObject ( ) : System
GetCurrentSprite ( ) : Sprite
Intersect ( float x, float y, float w, float h ) : bool
Remove ( GameObject gameObject ) : void
ResumeAnimation ( ) : void
SetSprite ( string animation, int index ) : void
StartAnimation ( string animation ) : void
StopAnimation ( ) : void
Update ( ) : void

Method Details

Clear() public static method

public static Clear ( ) : void
return void

Collides() public method

public Collides ( GameObject target ) : bool
target GameObject
return bool

Compare() public static method

public static Compare ( GameObject x, GameObject y ) : int
x GameObject
y GameObject
return int

Create() public static method

public static Create ( ImageElement defaultImage, float handleX, float handleY ) : GameObject
defaultImage System.Html.ImageElement
handleX float
handleY float
return GameObject

Dispose() public method

public Dispose ( ) : void
return void

Draw() public method

public Draw ( System.Html.Media.Graphics.CanvasContext2D context ) : void
context System.Html.Media.Graphics.CanvasContext2D
return void

DrawObjects() public static method

public static DrawObjects ( System.Html.Media.Graphics.CanvasContext2D context ) : void
context System.Html.Media.Graphics.CanvasContext2D
return void

GameObject() public method

public GameObject ( ) : System
return System

GetCurrentSprite() public method

public GetCurrentSprite ( ) : Sprite
return Sprite

Intersect() public method

public Intersect ( float x, float y, float w, float h ) : bool
x float
y float
w float
h float
return bool

Remove() public static method

public static Remove ( GameObject gameObject ) : void
gameObject GameObject
return void

ResumeAnimation() public method

public ResumeAnimation ( ) : void
return void

SetSprite() public method

public SetSprite ( string animation, int index ) : void
animation string
index int
return void

StartAnimation() public method

public StartAnimation ( string animation ) : void
animation string
return void

StopAnimation() public method

public StopAnimation ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

AnimationSequences public property

public Dictionary AnimationSequences
return AnimationSequence>.Dictionary

CurrentAnimation public property

public string CurrentAnimation
return string

CurrentFrame public property

public int CurrentFrame
return int

Delay public property

public int Delay
return int

Location public property

public Vector3D,Vtj.Gaming Location
return Vtj.Gaming.Vector3D

Objects public static property

public static List Objects
return List

Scale public property

public float Scale
return float

Started protected property

protected bool Started
return bool

Visible public property

public bool Visible
return bool