Property | Type | Description | |
---|---|---|---|
Id | int | ||
MFriction | float | ||
MName | String | ||
MPosition | Vector2 | ||
MPrevPos | Vector2 | ||
MSpriteImageData | Color[] | ||
Velocity | Vector2 |
Property | Type | Description | |
---|---|---|---|
MCollisionType | string | ||
MIsSquare | bool | ||
MSize | Vector2 |
Method | Description | |
---|---|---|
Draw ( |
Draws the object to the screen
|
|
Equals ( object obj ) : bool |
Checks to see if the other object is equal to this object
|
|
GameObject ( ) : System |
Initializes an empty GameObject.
|
|
GameObject ( Microsoft.Xna.Framework.Content.ContentManager content, float friction, |
Constructs a GameObject
|
|
GetHashCode ( ) : int |
Returns the Unique Object ID for this object. This should map the object in a "perfect" hashed, hash table
|
|
Load ( Microsoft.Xna.Framework.Content.ContentManager content, String name ) : void |
Loads the visual representation of this character
|
|
Respawn ( ) : void |
Resets this object to its initial position
|
public Draw ( |
||
canvas | Canvas that the game is being drawn on | |
gametime | The current gametime | |
return | void |
public GameObject ( Microsoft.Xna.Framework.Content.ContentManager content, float friction, |
||
content | Microsoft.Xna.Framework.Content.ContentManager | The games content manager |
friction | float | Friction that reacts to physics objects |
entity | ||
return | System |
public Load ( Microsoft.Xna.Framework.Content.ContentManager content, String name ) : void | ||
content | Microsoft.Xna.Framework.Content.ContentManager | |
name | String | |
return | void |