Property | Type | Description | |
---|---|---|---|
Pos | Vector2 |
Property | Type | Description | |
---|---|---|---|
Construct | void |
Method | Description | |
---|---|---|
Entity ( ) : System | ||
Entity ( float x, float y, float scaleX = 1, float scaleY = 1, bool visible = true ) : System | ||
GetDebugInfo ( ) : string |
Overridable method whose result is used to display entity debug information by the TeeEngine in its draw method when 'ShowEntityDebugInfo' is set to true in the DrawingOptions. By Default, the result of this method will be the same as the ToString method.
|
|
GetPxBoundingBox ( |
Gets the bounding box for this entity at the specified GameTime and using the specified Tile Width and Height (In Pixels). The result of this method will be returned in pixel units and will change from one GameTime instance to another depending on the contents of the entities Drawables. If no drawables are found in the entity, then a rectangle with 0 width and 0 height will be returned.
|
|
GetPxBoundingBox ( |
Gets the bounding box for this entity at the specified GameTime and using the specified Tile Width and Height (In Pixels). The result of this method will be returned in pixel units and will change from one GameTime instance to another depending on the contents of the entities Drawables. If no drawables are found in the entity, then a rectangle with 0 width and 0 height will be returned. An optional group parameter may be passed to only calculate the bounding area for a specific group of drawable objects. Passing null to group will test for all groups.
|
|
IntersectsWith ( Entity entity1, string entity1Group, Entity entity2, string entity2Group, |
Helper method that wraps the static IntersectsWith Entity method. Assumes the state to check is the current drawable state.
|
|
IntersectsWith ( Entity entity1, string entity1State, string entity1Group, Entity entity2, string entity2State, string entity2Group, |
Checks if Two Entities are intersecting each other assuming the specified states, gameTime and group filter. This check is actually rather ineffecient. O(n^2) time complexity. In reality though, we would be smart about what to compare - hence the group and state filters. The number of comparasins between drawables should be kept to a minimum in order to maintain performance.
|
|
IntersectsWith ( Entity entity, string entityState, string entityGroup, |
||
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void | ||
PostCreate ( |
Called AFTER the entity is added to the engines entity list. The entity will be garuanteed to have a valid CurrentBoundingBox value and have a place in the QuadTree.
|
|
PostDestroy ( |
Called AFTER the entity has been removed from the engines entity list.
|
|
PreCreate ( |
Called BEFORE the entity is added to the engines entity list. The result of the PreCreate method determines if the entity will be added or not.
|
|
PreDestroy ( |
Called BEFORE the entity has been removed from the engines entity list. The result of the PreDestroy method determines if the entity will be removed or not.
|
|
ToString ( ) : string | ||
Update ( |
Method | Description | |
---|---|---|
Construct ( float x, float y, float scaleX, float scaleY, bool visible ) : void |
public Entity ( float x, float y, float scaleX = 1, float scaleY = 1, bool visible = true ) : System | ||
x | float | |
y | float | |
scaleX | float | |
scaleY | float | |
visible | bool | |
return | System |
public GetPxBoundingBox ( |
||
gameTime | ||
return |
public GetPxBoundingBox ( |
||
gameTime | The Current GameTime. | |
group | string | Optional string value that specifies the groups to include in BB calculations. |
return |
public static IntersectsWith ( Entity entity1, string entity1Group, Entity entity2, string entity2Group, |
||
entity1 | Entity | |
entity1Group | string | |
entity2 | Entity | |
entity2Group | string | |
gameTime | ||
return | bool |
public static IntersectsWith ( Entity entity1, string entity1State, string entity1Group, Entity entity2, string entity2State, string entity2Group, |
||
entity1 | Entity | |
entity1State | string | |
entity1Group | string | |
entity2 | Entity | |
entity2State | string | |
entity2Group | string | |
gameTime | ||
return | bool |
public static IntersectsWith ( Entity entity, string entityState, string entityGroup, |
||
entity | Entity | |
entityState | string | |
entityGroup | string | |
bounds | ||
gameTime | ||
return | bool |
public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void | ||
content | Microsoft.Xna.Framework.Content.ContentManager | |
return | void |
public PostCreate ( |
||
gameTime | ||
engine | TeeEngine | |
return | void |
public PostDestroy ( |
||
gameTime | ||
engine | TeeEngine | |
return | void |
public PreCreate ( |
||
gameTime | ||
engine | TeeEngine | |
return | bool |
public PreDestroy ( |
||
gameTime | ||
engine | TeeEngine | |
return | bool |
public Update ( |
||
gameTime | ||
engine | TeeEngine | |
return | void |