|
|
@@ -1,17 +1,14 @@
|
|
|
-#include "core/Entity.h"
|
|
|
-
|
|
|
#include <OgreSceneNode.h>
|
|
|
|
|
|
#include "core/ConfigVar.h"
|
|
|
#include "core/DebugDraw.h"
|
|
|
+#include "core/Entity.h"
|
|
|
#include "core/Logger.h"
|
|
|
|
|
|
|
|
|
-
|
|
|
ConfigVar cv_debug_entity( "debug_entity", "Draw entity debug info", "0" );
|
|
|
|
|
|
|
|
|
-
|
|
|
Entity::Entity( const Ogre::String& name, Ogre::SceneNode* node ):
|
|
|
m_Name( name ),
|
|
|
m_SceneNode( node ),
|
|
|
@@ -94,7 +91,6 @@ Entity::Entity( const Ogre::String& name, Ogre::SceneNode* node ):
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
Entity::~Entity()
|
|
|
{
|
|
|
delete m_SolidCollision;
|
|
|
@@ -106,7 +102,6 @@ Entity::~Entity()
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::Update()
|
|
|
{
|
|
|
@@ -116,8 +111,6 @@ Entity::Update()
|
|
|
m_MoveStopDistance = GetSolidRadius() + m_MoveEntity->GetSolidRadius();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
if( m_TurnEntity != NULL )
|
|
|
{
|
|
|
Ogre::Degree angle = GetDirectionToEntity( m_TurnEntity );
|
|
|
@@ -129,7 +122,6 @@ Entity::Update()
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::UpdateDebug()
|
|
|
{
|
|
|
@@ -205,7 +197,6 @@ Entity::UpdateDebug()
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
const Ogre::String&
|
|
|
Entity::GetName() const
|
|
|
{
|
|
|
@@ -213,7 +204,6 @@ Entity::GetName() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetPosition( const Ogre::Vector3& position )
|
|
|
{
|
|
|
@@ -221,7 +211,6 @@ Entity::SetPosition( const Ogre::Vector3& position )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::ScriptSetPosition( const float x, const float y, const float z )
|
|
|
{
|
|
|
@@ -231,7 +220,6 @@ Entity::ScriptSetPosition( const float x, const float y, const float z )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
const Ogre::Vector3
|
|
|
Entity::GetPosition() const
|
|
|
{
|
|
|
@@ -239,7 +227,6 @@ Entity::GetPosition() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::ScriptGetPosition() const
|
|
|
{
|
|
|
@@ -250,7 +237,6 @@ Entity::ScriptGetPosition() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetOffset( const Ogre::Vector3& position )
|
|
|
{
|
|
|
@@ -259,7 +245,6 @@ Entity::SetOffset( const Ogre::Vector3& position )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
const Ogre::Vector3
|
|
|
Entity::GetOffset() const
|
|
|
{
|
|
|
@@ -268,7 +253,6 @@ Entity::GetOffset() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetRotation( const Ogre::Degree& rotation )
|
|
|
{
|
|
|
@@ -288,7 +272,6 @@ Entity::SetRotation( const Ogre::Degree& rotation )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::ScriptSetRotation( const float rotation )
|
|
|
{
|
|
|
@@ -296,7 +279,6 @@ Entity::ScriptSetRotation( const float rotation )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
Ogre::Degree
|
|
|
Entity::GetRotation() const
|
|
|
{
|
|
|
@@ -310,29 +292,25 @@ Entity::GetRotation() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
float
|
|
|
Entity::ScriptGetRotation() const
|
|
|
{
|
|
|
return GetRotation().valueDegrees();
|
|
|
}
|
|
|
|
|
|
- //--------------------------------------------------------------------------
|
|
|
- void Entity::setScale(const Ogre::Vector3 &scale)
|
|
|
- {
|
|
|
- assert(m_model_root_node);
|
|
|
- m_model_root_node->setScale( scale );
|
|
|
- }
|
|
|
|
|
|
- //--------------------------------------------------------------------------
|
|
|
- void Entity::setRootOrientation(const Ogre::Quaternion &root_orientation)
|
|
|
- {
|
|
|
- assert(m_ModelNode);
|
|
|
- m_ModelNode->setOrientation( root_orientation );
|
|
|
- }
|
|
|
+void Entity::setScale(const Ogre::Vector3 &scale)
|
|
|
+{
|
|
|
+ assert(m_model_root_node);
|
|
|
+ m_model_root_node->setScale( scale );
|
|
|
+}
|
|
|
|
|
|
- //--------------------------------------------------------------------------
|
|
|
|
|
|
+void Entity::setRootOrientation(const Ogre::Quaternion &root_orientation)
|
|
|
+{
|
|
|
+ assert(m_ModelNode);
|
|
|
+ m_ModelNode->setOrientation( root_orientation );
|
|
|
+}
|
|
|
|
|
|
|
|
|
float
|
|
|
@@ -342,7 +320,6 @@ Entity::GetHeight() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetSolidRadius( const float radius )
|
|
|
{
|
|
|
@@ -351,7 +328,6 @@ Entity::SetSolidRadius( const float radius )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
float
|
|
|
Entity::GetSolidRadius() const
|
|
|
{
|
|
|
@@ -359,7 +335,6 @@ Entity::GetSolidRadius() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetSolid( const bool solid )
|
|
|
{
|
|
|
@@ -367,7 +342,6 @@ Entity::SetSolid( const bool solid )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
bool
|
|
|
Entity::IsSolid() const
|
|
|
{
|
|
|
@@ -375,7 +349,6 @@ Entity::IsSolid() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetTalkRadius( const float radius )
|
|
|
{
|
|
|
@@ -384,7 +357,6 @@ Entity::SetTalkRadius( const float radius )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
float
|
|
|
Entity::GetTalkRadius() const
|
|
|
{
|
|
|
@@ -392,7 +364,6 @@ Entity::GetTalkRadius() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetTalkable( const bool talkable )
|
|
|
{
|
|
|
@@ -400,7 +371,6 @@ Entity::SetTalkable( const bool talkable )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
bool
|
|
|
Entity::IsTalkable() const
|
|
|
{
|
|
|
@@ -408,7 +378,6 @@ Entity::IsTalkable() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetState( const Entity::State state )
|
|
|
{
|
|
|
@@ -416,7 +385,6 @@ Entity::SetState( const Entity::State state )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
Entity::State
|
|
|
Entity::GetState() const
|
|
|
{
|
|
|
@@ -424,7 +392,6 @@ Entity::GetState() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetMoveAutoSpeed( const float speed )
|
|
|
{
|
|
|
@@ -432,7 +399,6 @@ Entity::SetMoveAutoSpeed( const float speed )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
float
|
|
|
Entity::GetMoveAutoSpeed() const
|
|
|
{
|
|
|
@@ -440,7 +406,6 @@ Entity::GetMoveAutoSpeed() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetMoveWalkSpeed( const float speed )
|
|
|
{
|
|
|
@@ -448,7 +413,6 @@ Entity::SetMoveWalkSpeed( const float speed )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
float
|
|
|
Entity::GetMoveWalkSpeed() const
|
|
|
{
|
|
|
@@ -456,7 +420,6 @@ Entity::GetMoveWalkSpeed() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetMoveRunSpeed( const float speed )
|
|
|
{
|
|
|
@@ -464,7 +427,6 @@ Entity::SetMoveRunSpeed( const float speed )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
float
|
|
|
Entity::GetMoveRunSpeed() const
|
|
|
{
|
|
|
@@ -472,7 +434,6 @@ Entity::GetMoveRunSpeed() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetMovePosition( const Ogre::Vector3& target )
|
|
|
{
|
|
|
@@ -480,7 +441,6 @@ Entity::SetMovePosition( const Ogre::Vector3& target )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
const Ogre::Vector3&
|
|
|
Entity::GetMovePosition() const
|
|
|
{
|
|
|
@@ -488,7 +448,6 @@ Entity::GetMovePosition() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
float
|
|
|
Entity::GetMoveStopDistance() const
|
|
|
{
|
|
|
@@ -496,7 +455,6 @@ Entity::GetMoveStopDistance() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetMoveTriangleId( const int triangle )
|
|
|
{
|
|
|
@@ -504,7 +462,6 @@ Entity::SetMoveTriangleId( const int triangle )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
int
|
|
|
Entity::GetMoveTriangleId() const
|
|
|
{
|
|
|
@@ -512,7 +469,6 @@ Entity::GetMoveTriangleId() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetMoveAutoRotation( const bool rotate )
|
|
|
{
|
|
|
@@ -520,7 +476,6 @@ Entity::SetMoveAutoRotation( const bool rotate )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
bool
|
|
|
Entity::GetMoveAutoRotation() const
|
|
|
{
|
|
|
@@ -528,7 +483,6 @@ Entity::GetMoveAutoRotation() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetMoveAutoAnimation( const bool animate )
|
|
|
{
|
|
|
@@ -536,7 +490,6 @@ Entity::SetMoveAutoAnimation( const bool animate )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
bool
|
|
|
Entity::GetMoveAutoAnimation() const
|
|
|
{
|
|
|
@@ -544,7 +497,6 @@ Entity::GetMoveAutoAnimation() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
const Ogre::String&
|
|
|
Entity::GetMoveAnimationWalkName() const
|
|
|
{
|
|
|
@@ -552,7 +504,6 @@ Entity::GetMoveAnimationWalkName() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
const Ogre::String&
|
|
|
Entity::GetMoveAnimationRunName() const
|
|
|
{
|
|
|
@@ -560,7 +511,6 @@ Entity::GetMoveAnimationRunName() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::ScriptMoveToPosition( const float x, const float y )
|
|
|
{
|
|
|
@@ -573,7 +523,6 @@ Entity::ScriptMoveToPosition( const float x, const float y )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::ScriptMoveToEntity( Entity* entity )
|
|
|
{
|
|
|
@@ -586,7 +535,6 @@ Entity::ScriptMoveToEntity( Entity* entity )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
int
|
|
|
Entity::ScriptMoveSync()
|
|
|
{
|
|
|
@@ -599,7 +547,6 @@ Entity::ScriptMoveSync()
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::UnsetMove()
|
|
|
{
|
|
|
@@ -616,7 +563,6 @@ Entity::UnsetMove()
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::ScriptLinearToPosition( const float x, const float y, const float z, const LinearMovement movement, const char* animation )
|
|
|
{
|
|
|
@@ -627,7 +573,6 @@ Entity::ScriptLinearToPosition( const float x, const float y, const float z, con
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
int
|
|
|
Entity::ScriptLinearSync()
|
|
|
{
|
|
|
@@ -640,7 +585,6 @@ Entity::ScriptLinearSync()
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetLinear( const Ogre::Vector3& end, const LinearMovement movement, const Ogre::String& animation )
|
|
|
{
|
|
|
@@ -658,7 +602,6 @@ Entity::SetLinear( const Ogre::Vector3& end, const LinearMovement movement, cons
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::UnsetLinear()
|
|
|
{
|
|
|
@@ -675,7 +618,6 @@ Entity::UnsetLinear()
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
LinearMovement
|
|
|
Entity::GetLinearMovement() const
|
|
|
{
|
|
|
@@ -683,7 +625,6 @@ Entity::GetLinearMovement() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
const Ogre::Vector3&
|
|
|
Entity::GetLinearStart() const
|
|
|
{
|
|
|
@@ -691,7 +632,6 @@ Entity::GetLinearStart() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
const Ogre::Vector3&
|
|
|
Entity::GetLinearEnd() const
|
|
|
{
|
|
|
@@ -699,7 +639,6 @@ Entity::GetLinearEnd() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::ScriptJumpToPosition( const float x, const float y, const float z, const float seconds )
|
|
|
{
|
|
|
@@ -722,7 +661,6 @@ Entity::ScriptJumpSync()
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetJump( const Ogre::Vector3& jump_to, const float seconds )
|
|
|
{
|
|
|
@@ -737,7 +675,6 @@ Entity::SetJump( const Ogre::Vector3& jump_to, const float seconds )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::UnsetJump()
|
|
|
{
|
|
|
@@ -751,7 +688,6 @@ Entity::UnsetJump()
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
const Ogre::Vector3&
|
|
|
Entity::GetJumpStart() const
|
|
|
{
|
|
|
@@ -759,7 +695,6 @@ Entity::GetJumpStart() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
const Ogre::Vector3&
|
|
|
Entity::GetJumpEnd() const
|
|
|
{
|
|
|
@@ -767,7 +702,6 @@ Entity::GetJumpEnd() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
float
|
|
|
Entity::GetJumpSeconds() const
|
|
|
{
|
|
|
@@ -775,7 +709,6 @@ Entity::GetJumpSeconds() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetJumpCurrentSeconds( const float seconds )
|
|
|
{
|
|
|
@@ -783,7 +716,6 @@ Entity::SetJumpCurrentSeconds( const float seconds )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
float
|
|
|
Entity::GetJumpCurrentSeconds() const
|
|
|
{
|
|
|
@@ -791,7 +723,6 @@ Entity::GetJumpCurrentSeconds() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::ScriptOffsetToPosition( const float x, const float y, const float z, const ActionType type, const float seconds )
|
|
|
{
|
|
|
@@ -813,7 +744,6 @@ Entity::ScriptOffsetToPosition( const float x, const float y, const float z, con
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
int
|
|
|
Entity::ScriptOffsetSync()
|
|
|
{
|
|
|
@@ -826,7 +756,6 @@ Entity::ScriptOffsetSync()
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::UnsetOffset()
|
|
|
{
|
|
|
@@ -840,7 +769,6 @@ Entity::UnsetOffset()
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
const Ogre::Vector3&
|
|
|
Entity::GetOffsetPositionStart() const
|
|
|
{
|
|
|
@@ -848,7 +776,6 @@ Entity::GetOffsetPositionStart() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
const Ogre::Vector3&
|
|
|
Entity::GetOffsetPositionEnd() const
|
|
|
{
|
|
|
@@ -856,7 +783,6 @@ Entity::GetOffsetPositionEnd() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
ActionType
|
|
|
Entity::GetOffsetType() const
|
|
|
{
|
|
|
@@ -864,7 +790,6 @@ Entity::GetOffsetType() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
float
|
|
|
Entity::GetOffsetSeconds() const
|
|
|
{
|
|
|
@@ -872,7 +797,6 @@ Entity::GetOffsetSeconds() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetOffsetCurrentSeconds( const float seconds )
|
|
|
{
|
|
|
@@ -880,7 +804,6 @@ Entity::SetOffsetCurrentSeconds( const float seconds )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
float
|
|
|
Entity::GetOffsetCurrentSeconds() const
|
|
|
{
|
|
|
@@ -888,7 +811,6 @@ Entity::GetOffsetCurrentSeconds() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::ScriptTurnToDirection( const float direction, const TurnDirection turn_direction, const ActionType turn_type, const float seconds )
|
|
|
{
|
|
|
@@ -897,7 +819,6 @@ Entity::ScriptTurnToDirection( const float direction, const TurnDirection turn_d
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::ScriptTurnToEntity( Entity* entity, const TurnDirection turn_direction, const float seconds )
|
|
|
{
|
|
|
@@ -913,7 +834,6 @@ Entity::ScriptTurnToEntity( Entity* entity, const TurnDirection turn_direction,
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
int
|
|
|
Entity::ScriptTurnSync()
|
|
|
{
|
|
|
@@ -926,7 +846,6 @@ Entity::ScriptTurnSync()
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetTurn( const Ogre::Degree& direction_to, Entity* entity, const TurnDirection turn_direction, const ActionType turn_type, const float seconds )
|
|
|
{
|
|
|
@@ -950,7 +869,6 @@ Entity::SetTurn( const Ogre::Degree& direction_to, Entity* entity, const TurnDir
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::UnsetTurn()
|
|
|
{
|
|
|
@@ -964,7 +882,6 @@ Entity::UnsetTurn()
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
Ogre::Degree
|
|
|
Entity::CalculateTurnAngle( const Ogre::Degree& start, const Ogre::Degree& end ) const
|
|
|
{
|
|
|
@@ -1015,7 +932,6 @@ Entity::CalculateTurnAngle( const Ogre::Degree& start, const Ogre::Degree& end )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
Ogre::Degree
|
|
|
Entity::GetTurnDirectionStart() const
|
|
|
{
|
|
|
@@ -1023,7 +939,6 @@ Entity::GetTurnDirectionStart() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
Ogre::Degree
|
|
|
Entity::GetTurnDirectionEnd() const
|
|
|
{
|
|
|
@@ -1031,7 +946,6 @@ Entity::GetTurnDirectionEnd() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
ActionType
|
|
|
Entity::GetTurnType() const
|
|
|
{
|
|
|
@@ -1039,7 +953,6 @@ Entity::GetTurnType() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
float
|
|
|
Entity::GetTurnSeconds() const
|
|
|
{
|
|
|
@@ -1047,7 +960,6 @@ Entity::GetTurnSeconds() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::SetTurnCurrentSeconds( const float seconds )
|
|
|
{
|
|
|
@@ -1055,7 +967,6 @@ Entity::SetTurnCurrentSeconds( const float seconds )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
float
|
|
|
Entity::GetTurnCurrentSeconds() const
|
|
|
{
|
|
|
@@ -1063,7 +974,6 @@ Entity::GetTurnCurrentSeconds() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::ScriptSetAnimationSpeed( const float speed )
|
|
|
{
|
|
|
@@ -1071,7 +981,6 @@ Entity::ScriptSetAnimationSpeed( const float speed )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
const Ogre::String&
|
|
|
Entity::GetDefaultAnimationName() const
|
|
|
{
|
|
|
@@ -1079,7 +988,6 @@ Entity::GetDefaultAnimationName() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
const Ogre::String&
|
|
|
Entity::GetCurrentAnimationName() const
|
|
|
{
|
|
|
@@ -1087,7 +995,6 @@ Entity::GetCurrentAnimationName() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
Entity::AnimationState
|
|
|
Entity::GetAnimationState() const
|
|
|
{
|
|
|
@@ -1095,7 +1002,6 @@ Entity::GetAnimationState() const
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::ScriptPlayAnimation( const char* name )
|
|
|
{
|
|
|
@@ -1103,7 +1009,6 @@ Entity::ScriptPlayAnimation( const char* name )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::ScriptPlayAnimationStop( const char* name )
|
|
|
{
|
|
|
@@ -1111,7 +1016,6 @@ Entity::ScriptPlayAnimationStop( const char* name )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::ScriptPlayAnimation( const char* name, const float start, const float end )
|
|
|
{
|
|
|
@@ -1119,7 +1023,6 @@ Entity::ScriptPlayAnimation( const char* name, const float start, const float en
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::ScriptPlayAnimationStop( const char* name, const float start, const float end )
|
|
|
{
|
|
|
@@ -1127,7 +1030,6 @@ Entity::ScriptPlayAnimationStop( const char* name, const float start, const floa
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
void
|
|
|
Entity::ScriptSetDefaultAnimation( const char* animation )
|
|
|
{
|
|
|
@@ -1135,7 +1037,6 @@ Entity::ScriptSetDefaultAnimation( const char* animation )
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
int
|
|
|
Entity::ScriptAnimationSync()
|
|
|
{
|
|
|
@@ -1148,7 +1049,6 @@ Entity::ScriptAnimationSync()
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
Ogre::Degree
|
|
|
Entity::GetDirectionToEntity( Entity* entity ) const
|
|
|
{
|