C# Class Vtj.Gaming.GameObject

Inheritance: IDisposable
Afficher le fichier Open project: Ventajou/Space-Dinosaurs Class Usage Examples

Méthodes publiques

Свойство Type Description
AnimationSequences AnimationSequence>.Dictionary
CurrentAnimation string
CurrentFrame int
Delay int
Location Vtj.Gaming.Vector3D
Objects List
Scale float
Visible bool

Protected Properties

Свойство Type Description
Started bool

Méthodes publiques

Méthode 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 méthode

public static Clear ( ) : void
Résultat void

Collides() public méthode

public Collides ( GameObject target ) : bool
target GameObject
Résultat bool

Compare() public static méthode

public static Compare ( GameObject x, GameObject y ) : int
x GameObject
y GameObject
Résultat int

Create() public static méthode

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

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Draw() public méthode

public Draw ( System.Html.Media.Graphics.CanvasContext2D context ) : void
context System.Html.Media.Graphics.CanvasContext2D
Résultat void

DrawObjects() public static méthode

public static DrawObjects ( System.Html.Media.Graphics.CanvasContext2D context ) : void
context System.Html.Media.Graphics.CanvasContext2D
Résultat void

GameObject() public méthode

public GameObject ( ) : System
Résultat System

GetCurrentSprite() public méthode

public GetCurrentSprite ( ) : Sprite
Résultat Sprite

Intersect() public méthode

public Intersect ( float x, float y, float w, float h ) : bool
x float
y float
w float
h float
Résultat bool

Remove() public static méthode

public static Remove ( GameObject gameObject ) : void
gameObject GameObject
Résultat void

ResumeAnimation() public méthode

public ResumeAnimation ( ) : void
Résultat void

SetSprite() public méthode

public SetSprite ( string animation, int index ) : void
animation string
index int
Résultat void

StartAnimation() public méthode

public StartAnimation ( string animation ) : void
animation string
Résultat void

StopAnimation() public méthode

public StopAnimation ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

AnimationSequences public_oe property

public Dictionary AnimationSequences
Résultat AnimationSequence>.Dictionary

CurrentAnimation public_oe property

public string CurrentAnimation
Résultat string

CurrentFrame public_oe property

public int CurrentFrame
Résultat int

Delay public_oe property

public int Delay
Résultat int

Location public_oe property

public Vector3D,Vtj.Gaming Location
Résultat Vtj.Gaming.Vector3D

Objects public_oe static_oe property

public static List Objects
Résultat List

Scale public_oe property

public float Scale
Résultat float

Started protected_oe property

protected bool Started
Résultat bool

Visible public_oe property

public bool Visible
Résultat bool