|
| Flash (Color color) |
| Create a new Flash. More...
|
|
override void | Added () |
| Added to the Scene. More...
|
|
override void | Update () |
| Updated. More...
|
|
override void | Removed () |
| Removed from the Scene. More...
|
|
| Entity (float x=0, float y=0, Graphic graphic=null, Collider collider=null, string name="") |
| Create an entity. More...
|
|
void | SetGraphic (Graphic g) |
| Sets the graphic to a new graphic, removing all previous graphics. More...
|
|
void | SetPosition (float xy) |
| Set the X and Y position to a value. More...
|
|
void | AddPosition (float x, float y) |
| Add to the X and Y positions of the Entity. More...
|
|
void | AddPosition (Axis axis, float multiplier=1) |
| Add to the X and Y position of the Entity. More...
|
|
void | AddPosition (Vector2 vector) |
| Add to the X and Y position of the Entity. More...
|
|
void | SetPosition (float x, float y) |
| Set the position of the Entity. More...
|
|
void | SetPosition (Entity e, float offsetX=0, float offsetY=0) |
| Set the position of the Entity to another Entity's position. More...
|
|
void | SetPosition (Vector2 v) |
| Set the position of the Entity. More...
|
|
T | AddGraphic< T > (T g) |
| Adds a Graphic to the Entity. More...
|
|
T | AddGraphic< T > (T g, float x, float y) |
| Adds a Graphic to the Entity. More...
|
|
List< Graphic > | AddGraphics (params Graphic[] graphics) |
| Adds the graphics to the Entity. More...
|
|
T | AddGraphicGUI< T > (T g) |
| Adds a graphic to the Entity and sets its Scroll value to 0. More...
|
|
T | AddGraphicGUI< T > (T g, float x, float y) |
| Adds a graphic to the Entity and sets its Scroll value to 0. More...
|
|
List< Graphic > | AddGraphicsGUI (params Graphic[] graphics) |
| Adds Graphics to the Entity and sets their Scroll values to 0. More...
|
|
T | RemoveGraphic< T > (T g) |
| Removes a Graphic from the Entity. More...
|
|
void | RemoveGraphics (params Graphic[] g) |
| Removes Graphics from the Entity. More...
|
|
void | ClearGraphics () |
| Remove all the graphics from the entity. More...
|
|
T | AddComponent< T > (T c) |
| Adds a component to the entity. More...
|
|
T | AddComponent< T > (params object[] constructorArgs) |
| Creates and adds a Component to the entity. More...
|
|
List< Component > | AddComponents (params Component[] c) |
| Add multiple components to the entity. More...
|
|
T | RemoveComponent< T > (T c) |
| Removes a component from the Entity. More...
|
|
T | RemoveComponent< T > () |
| Removes the first component of type T from the Entity. More...
|
|
void | ClearComponents () |
| Remove all components from the Entity. More...
|
|
void | AddSurface (Surface target) |
| Add a surface that the entity should render to. More...
|
|
void | RemoveSurface (Surface target) |
| Remove a surface from the list of surfaces that the entity should render to. More...
|
|
void | ClearSurfaces () |
| Remove all Surfaces from the list of Surfaces that the Entity should render to. More...
|
|
BoxCollider | SetHitbox (int width, int height, params int[] tags) |
| Shortcut to set the Collider of the entity to a BoxCollider. Using this will set the "Hitbox" field to this Collider. More...
|
|
BoxCollider | SetHitbox (int width, int height, Enum tag, params Enum[] tags) |
| Shortcut to set the Collider of the entity to a BoxCollider. Using this will set the "Hitbox" field to this Collider. More...
|
|
T | GetEntity< T > () |
| Get the first instance of an Entity of type T in this Entity's Scene. More...
|
|
List< T > | GetEntities< T > () |
| Get a list of entities of type T from this Entity's Scene. More...
|
|
T | GetComponent< T > () |
| Get the first Component of type T. More...
|
|
Component | GetComponent (Type type) |
| Get the first Component of Type type. More...
|
|
List< T > | GetComponents< T > () |
| Get all Components of type T. More...
|
|
T | GetGraphic< T > () |
| Get the first graphic of type T. More...
|
|
T | GetCollider< T > () |
| Get the first collider of type T. More...
|
|
T | AddCollider< T > (T c) |
| Add a collider to the entity. More...
|
|
T | RemoveCollider< T > (T c) |
| Remove the collider from the entity. More...
|
|
void | ClearColliders () |
| Remove all colliders from the entity. More...
|
|
T | SetCollider< T > (T c) |
| Remove all current colliders and set collider to a new one. More...
|
|
List< Collider > | AddColliders (params Collider[] colliders) |
| Adds colliders to the entity. More...
|
|
void | RemoveColliders (params Collider[] colliders) |
| Removes colliders from the entity. More...
|
|
Collider | Collide (float x, float y, params int[] tags) |
| Checks for a collision using the first available Collider. More...
|
|
Collider | Collide (float x, float y, params Enum[] tags) |
| Checks for a collision using the first available Collider. More...
|
|
List< Collider > | CollideList (float x, float y, params int[] tags) |
| Checks for a collision with the first available Collider. More...
|
|
List< Collider > | CollideList (float x, float y, params Enum[] tags) |
| Checks for a collision with the first available Collider. More...
|
|
List< Entity > | CollideEntities (float x, float y, params int[] tags) |
| Checks for a collision with the first available Collider. More...
|
|
List< Entity > | CollideEntities (float x, float y, params Enum[] tags) |
| Checks for a collision with the first available Collider. More...
|
|
List< T > | CollideEntities< T > (float x, float y, List< T > entities) |
|
List< T > | CollideEntities< T > (float x, float y, params int[] tags) |
|
List< T > | CollideEntities< T > (float x, float y, params Enum[] tags) |
|
bool | Overlap (float x, float y, params int[] tags) |
| Checks for an overlap using the first available collider. More...
|
|
bool | Overlap (float x, float y, params Enum[] tags) |
| Checks for an overlap using the first available collider. More...
|
|
bool | Overlap (float x, float y, Entity e) |
| Checks for an overlap using the first available collider. More...
|
|
virtual void | SceneBegin () |
| Called when the Scene begins. More...
|
|
virtual void | SceneEnd () |
| Called when the Scene ends. More...
|
|
virtual void | ScenePause () |
| Called when the Scene is paused. More...
|
|
virtual void | SceneResume () |
| Called when the Scene is resumed. More...
|
|
virtual void | Paused () |
| Called when the entity is paused by the Scene. More...
|
|
virtual void | Resumed () |
| Called when the entity is resumed by the Scene. More...
|
|
Tween | Tween (object target, object values, float duration, float delay=0) |
| Tweens a set of numeric properties on an object. More...
|
|
virtual void | UpdateFirst () |
| Called first during the update. Happens before Update. More...
|
|
virtual void | UpdateLast () |
| Called last during the update. Happens after Update. More...
|
|
virtual void | Render () |
| Called when the entity is rendering to the screen. More...
|
|
virtual void | Prerender () |
| Called before an entity is rendered. Things rendered here will appear below the Entity's Graphics. More...
|
|
void | RemoveSelf () |
| Remove this entity from the Scene it's in. More...
|
|
Entity that acts as a screen flash. Best used when using the constructor that allows for initial parameters be set: Flash(Color.Red) { Alpha = 0.5, Blend = BlendMode.Add };