Пример #1
0
 public override void CaptureModelState(GameObject model_ptr)
 {
     base.CaptureModelState(model_ptr);
     velocity      = SVector.FromVector2(((PhysicalObject)model_ptr).Velocity);
     ghost         = ((PhysicalObject)model_ptr).Ghost;
     last_velocity = SVector.FromVector2(((PhysicalObject)model_ptr).last_computed_velocity);
 }
Пример #2
0
 public virtual void CaptureModelState(GameObject model_ptr)
 {
     pos              = SVector.FromVector2(model_ptr.Position);
     color            = SColor.FromColor(model_ptr.color);
     sprite_state     = model_ptr.Sprite.NowState();
     sprite_frame     = model_ptr.Sprite.NowFrame();
     sprite_direction = model_ptr.Sprite.Direction;
 }