C# Class Vtj.Gaming.GameObject

Inheritance: IDisposable
Datei anzeigen 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_oe property

public Dictionary AnimationSequences
return AnimationSequence>.Dictionary

CurrentAnimation public_oe property

public string CurrentAnimation
return string

CurrentFrame public_oe property

public int CurrentFrame
return int

Delay public_oe property

public int Delay
return int

Location public_oe property

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

Objects public_oe static_oe property

public static List Objects
return List

Scale public_oe property

public float Scale
return float

Started protected_oe property

protected bool Started
return bool

Visible public_oe property

public bool Visible
return bool