Свойство | Type | Description | |
---|---|---|---|
id | uint | ||
image | Sprite | ||
mCollisionUnit | |||
mPhysBaby |
Méthode | Description | |
---|---|---|
CollisionChange ( ) : void |
Collision change event. This is usually called when an Entitiy collides with this Entity.
|
|
CompareID ( Entity e ) : bool |
Compare this ID's Entity with another Entity to determine if they are the same.
|
|
CopyTo ( Entity &ent ) : void |
Copy this Entity to another entity. If overriden then the base.CopyTo call must be the first line of code.
|
|
Draw ( |
Draws the entity to the screen
|
|
EnablePhysics ( bool bPhysics, bool bCollision ) : void |
Enable physics on this Entity.
|
|
Entity ( ) : System | ||
Entity ( Vector2 position ) : System |
Constructs a new entity in the scene
|
|
Entity ( float x, float y ) : System |
Constructs a new entity in the scene
|
|
GetCollisionUnit ( ) : |
Get the collision unit for this Entity
|
|
GetID ( ) : uint |
Get the ID of this Entity.
|
|
GetPhysicsBaby ( ) : |
Get the PhysicsBaby for this Entity.
|
|
GetVelocity ( ) : Vector2 |
Get this Entity's velocity. This is a helper function that is equivilant to
|
|
SetCollisionUnit ( |
Set the collision unit for this Entity.
|
|
SetVelocity ( Vector2 velocity ) : void |
Set this Entity's velocity. This is a helper function that is equivilant to
|
|
SetVelocity ( float x, float y ) : void |
Set this Entity's velocity. This is a helper function that is equivilant to
|
|
Update ( |
Called once during each step taken by the engine
|
Méthode | Description | |
---|---|---|
SetUpCollision ( ) : void |
Set up the collision unit for this Entity.
|
Méthode | Description | |
---|---|---|
InSetUpCollision ( ) : void | ||
SetColor ( Color backColor ) : void |
public CompareID ( Entity e ) : bool | ||
e | Entity | The other Entity to compare IDs with. |
Résultat | bool |
public CopyTo ( Entity &ent ) : void | ||
ent | Entity | The entity to copy to. |
Résultat | void |
public Draw ( |
||
gameTime | ||
Résultat | void |
public EnablePhysics ( bool bPhysics, bool bCollision ) : void | ||
bPhysics | bool | true if physics should be enabled for this Entity, false if it should be disabled. |
bCollision | bool | true collisions should be enabled for this Entity, false if it should be disabled. |
Résultat | void |
public Entity ( Vector2 position ) : System | ||
position | Vector2 | Coordinates |
Résultat | System |
public Entity ( float x, float y ) : System | ||
x | float | X coordinate |
y | float | Y coordinate |
Résultat | System |
public GetCollisionUnit ( ) : |
||
Résultat |
public GetPhysicsBaby ( ) : |
||
Résultat |
public SetCollisionUnit ( |
||
unit | The collision unit to set for this Entity. | |
Résultat | void |
public SetVelocity ( Vector2 velocity ) : void | ||
velocity | Vector2 | The velocity to set this Entity's velocity to. |
Résultat | void |
public SetVelocity ( float x, float y ) : void | ||
x | float | The horizontal velocity of for this Entity. |
y | float | The veritcal velocity of for this Entity. |
Résultat | void |
public Update ( |
||
gameTime | The current game time | |
Résultat | void |
protected CollisionUnit,SGDE.Physics.Collision mCollisionUnit | ||
Résultat |