public static BaseMissionObjectController GetObject(BaseMissionObject obj) { if (obj.GetType() == typeof(BulletObject)) { return(new BulletObjectController(obj)); } else if (obj.GetType() == typeof(PlayerObject)) { return(new PlayerObjectController(obj)); } else if (obj.GetType() == typeof(SkeletonObject)) { return(new SkeletonObjectController(obj)); } else if (obj.GetType() == typeof(TestObject)) { return(new TestObjectController(obj)); } else { throw new Exception("unknow mission type " + obj.GetType()); } }
public BulletObjectController(BaseMissionObject obj) : base(obj) { }
public BaseMissionObjectController(BaseMissionObject obj) { Object = obj; }
public PlayerObjectController(BaseMissionObject obj) : base(obj) { }
public SkeletonObjectController(BaseMissionObject obj) : base(obj) { }