Ejemplo n.º 1
0
 protected MovableEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     m_actorState      = (BehaviorState)info.GetValue("actorState", typeof(BehaviorState));
     m_positionMemento = (ActorPositionMemento)info.GetValue("positionMemento", typeof(ActorPositionMemento));
     m_velocity        = (Vector3)info.GetValue("velocity", typeof(Vector3));
     m_speed           = info.GetSingle("speed");
 }
Ejemplo n.º 2
0
 public MovableEntity(string modelPath, string texturePath, string normalMapPath, string specularMapPath, Vector3 translation, Vector3 rotation, Vector3 scale) :
     base(modelPath, texturePath, normalMapPath, specularMapPath, translation, rotation, scale)
 {
     ActorState        = BehaviorState.FREE_FALLING;
     m_positionMemento = new ActorPositionMemento();
     pushPosition();
     this.Speed = 0.3f;
 }