示例#1
0
文件: Thing.cs 项目: sinshu/mafia
 public virtual void CollidedTop(Thing thing)
 {
     if (!thing.CanPush && !Carry.Has(thing))
     {
         Carry.AddThing(thing);
     }
 }
示例#2
0
文件: GameScene.cs 项目: sinshu/mafia
 public void AddThingInGame(Thing thing)
 {
     addThings.AddThing(thing);
 }
示例#3
0
文件: GameScene.cs 项目: sinshu/mafia
 public void AddPlayer(int row, int col, int direction)
 {
     player = new Player(this, row, col, direction);
     things.AddThing(player);
     Camera = player.Focus - new Vector(Mafia.SCREEN_WIDTH / 2, Mafia.SCREEN_HEIGHT / 2);
 }