Beispiel #1
0
 public Objects(Vector2i position)
 {
     this.position = position;
     if (Map.Level == 1)
     {
         MapField mapField = MapCity.GetMapField(position);
         mapField.Content = this;
     }
     else if (Map.Level == 2)
     {
         MapField mapField = MapForest.GetMapField(position);
         mapField.Content = this;
     }
     else if (Map.Level == 3)
     {
         MapField mapField = MapGraveyard.GetMapField(position);
         mapField.Content = this;
     }
 }
Beispiel #2
0
 public Player(Vector2i position)
     : base(position)
 {
 }
Beispiel #3
0
 private void CheckWall(Vector2i playerPosition, int maxHeight, int maxWidth)
 {
     if (playerPosition.X - 1 < 1)
         playerPosition.X = 1;
     if (playerPosition.X + 1 >= maxWidth)
         playerPosition.X = 38;
     if (playerPosition.Y - 1 < 1)
         playerPosition.Y = 1;
     if (playerPosition.Y + 1 >= maxHeight)
         playerPosition.Y = 18;
 }
Beispiel #4
0
 public Gold(Vector2i position)
     : base(position)
 {
 }
Beispiel #5
0
 public PortalToForest(Vector2i position)
     : base(position)
 {
 }
Beispiel #6
0
 public GraveyardWall(Vector2i position)
     : base(position)
 {
 }
Beispiel #7
0
 public Triforce(Vector2i position)
     : base(position)
 {
 }
Beispiel #8
0
 public SkeletonKing(Vector2i position)
     : base(position)
 {
 }
Beispiel #9
0
 public MapField(Vector2i postion)
 {
     Position = postion;
 }
Beispiel #10
0
 public Gravestone(Vector2i position)
     : base(position)
 {
 }
Beispiel #11
0
 public Ork(Vector2i position)
     : base(position)
 {
 }
Beispiel #12
0
 public PortalToCity(Vector2i position)
     : base(position)
 {
 }
Beispiel #13
0
 public PortalToGraveyard(Vector2i position)
     : base(position)
 {
     PortalIconChange();
     PortalNameChange();
 }
Beispiel #14
0
 public CityWall(Vector2i position)
     : base(position)
 {
 }
Beispiel #15
0
 public static MapField GetMapField(Vector2i position)
 {
     return cityFields[position.X, position.Y];
 }
Beispiel #16
0
 public Vector2i(Vector2i position)
 {
     X = position.X;
     Y = position.Y;
 }
Beispiel #17
0
 public Water(Vector2i position)
     : base(position)
 {
 }
Beispiel #18
0
 public Trees(Vector2i position)
     : base(position)
 {
 }
Beispiel #19
0
 public ForestWall(Vector2i position)
     : base(position)
 {
 }
Beispiel #20
0
 public BlankSpace(Vector2i position)
     : base(position)
 {
 }
Beispiel #21
0
 public static MapField GetMapField(Vector2i position)
 {
     return graveyardFields[position.X, position.Y];
 }