Otter  0.9.88
2d Game Development Framework based on SFML.Net
 All Classes Namespaces Functions Variables Enumerations Properties
Otter.Bone Class Reference

Inherits Otter.Component.

Classes

struct  BoneSlot
 

Public Member Functions

 Bone (float x=0, float y=0, float rotation=0, float scaleX=1, float scaleY=1)
 
 Bone (Entity e, float x=0, float y=0, float rotation=0, float scaleX=1, float scaleY=1)
 
Bone AddBone (Bone e)
 Add a bone as a child of this bone. This should be done via a Skeleton! More...
 
List< BoneGetAllChildren ()
 Gets all the children of a specified Bone. More...
 
Bone SetEntity (Entity e)
 
override void Added ()
 Called when the Component is added to the Entity. More...
 
void UpdateTransforms ()
 
override void Render ()
 Called during the Render on the parent Entity. More...
 
- Public Member Functions inherited from Otter.Component
virtual void Removed ()
 Called when the Component is removed from the Entity. More...
 
void RemoveSelf ()
 Removes the Component from its parent Entity. More...
 
virtual void UpdateFirst ()
 Called during the UpdateFirst on the parent Entity. More...
 
virtual void Update ()
 Called during the Update on the parent Entity. More...
 
virtual void UpdateLast ()
 Called during the UpdateLast on the parent Entity. More...
 
GetComponent< T > ()
 Gets the first Component of type T from this Component's Entity. More...
 
List< T > GetComponents< T > ()
 Gets a list of Components of type T from this Component's Entity. More...
 

Public Attributes

Bone Parent
 
Skeleton Skeleton
 
string Name
 
List< BoneChildren = new List<Bone>()
 
bool AutoAddEntities
 
bool InheritScale = false
 
bool InheritRotation = true
 
float LocalX
 
float LocalY
 
float LocalRotation
 
float LocalScaleX = 1
 
float LocalScaleY = 1
 
bool LocalFlipX
 
bool LocalFlipY
 
bool FlipGraphicX
 
bool FlipGraphicY
 
- Public Attributes inherited from Otter.Component
Entity Entity
 The parent Entity of the Component. More...
 
bool RenderAfterEntity = true
 Determines if the Component should render after the Entity has rendered. More...
 
bool Visible = true
 Determines if the Component will render. More...
 
float Timer = 0
 How long the Component has been alive (added to an Entity and updated.) More...
 

Properties

int Depth [get, set]
 
float X [get, set]
 
float Y [get, set]
 
float Rotation [get, set]
 
float ScaleX [get, set]
 
float ScaleY [get, set]
 
bool FlipX [get, set]
 
bool FlipY [get, set]
 
float BaseX [get, set]
 
float BaseY [get, set]
 
float BaseRotation [get, set]
 
float BaseScaleX [get, set]
 
float BaseScaleY [get, set]
 
BoneSlot Slot [get, set]
 
- Properties inherited from Otter.Component
Scene Scene [get]
 The Scene that the parent Entity is in. More...
 
Collider Collider [get]
 The first Collider of the parent Entity. More...
 
Graphic Graphic [get]
 The first Graphic of the parent Entity. More...
 
List< GraphicGraphics [get]
 The list of Graphics from the parent Entity. More...
 
List< ColliderColliders [get]
 The list of Colliders from the parent Entity. More...
 

Member Function Documentation

Bone Otter.Bone.AddBone ( Bone  e)

Add a bone as a child of this bone. This should be done via a Skeleton!

Parameters
eThe bone to add.
Returns
The added bone.
override void Otter.Bone.Added ( )
virtual

Called when the Component is added to the Entity.

Reimplemented from Otter.Component.

List<Bone> Otter.Bone.GetAllChildren ( )

Gets all the children of a specified Bone.

Returns
A list of bones that are the children of the specified Bone.
override void Otter.Bone.Render ( )
virtual

Called during the Render on the parent Entity.

Reimplemented from Otter.Component.


The documentation for this class was generated from the following file: