示例#1
0
 public void SetInvisible(List <Monster> monsterList)
 {
     foreach (Character monster in monsterList)
     {
         MyFoxDraw.SetPosition(MyFoxDraw.Items[monster.CharacterId], -500, -500);
     }
 }
示例#2
0
 internal void MoveDown(Character character)
 {
     if ((character.TileNumber / WidthUnits != HeightUnits - 1) && !WallTiles.Contains(character.TileNumber + 10))
     {
         double x = MyFoxDraw.GetLeft(MyFoxDraw.Items[character.CharacterId]);
         double y = MyFoxDraw.GetTop(MyFoxDraw.Items[character.CharacterId]) + 50;
         MyFoxDraw.SetPosition(MyFoxDraw.Items[character.CharacterId], x, y);
         character.TileNumber += 10;
     }
 }
示例#3
0
 internal void MoveUp(Character character)
 {
     if ((character.TileNumber / WidthUnits != 0) && !WallTiles.Contains(character.TileNumber - 10))
     {
         double x = MyFoxDraw.GetLeft(MyFoxDraw.Items[character.CharacterId]);
         double y = MyFoxDraw.GetTop(MyFoxDraw.Items[character.CharacterId]) - 50;
         MyFoxDraw.SetPosition(MyFoxDraw.Items[character.CharacterId], x, y);
         character.TileNumber -= 10;
     }
 }
示例#4
0
 public void ResetPositionToZero(Character character)
 {
     MyFoxDraw.SetPosition(MyFoxDraw.Items[character.CharacterId], 0, 0);
     character.TileNumber = 0;
 }
示例#5
0
 public void SetInvisible(Character character)
 {
     MyFoxDraw.SetPosition(MyFoxDraw.Items[character.CharacterId], -500, -500);
 }