From 75e4a4e4120cf832e27f474846cc7f60d84ff71c Mon Sep 17 00:00:00 2001 From: chemodax Date: Sat, 12 Aug 2023 21:46:51 +0300 Subject: [PATCH] Rename AbstarctPlayer to AbstractPlayer. --- UWP/{AbstarctPlayer.cs => AbstractPlayer.cs} | 4 ++-- UWP/Human.cs | 2 +- UWP/MrBoom.csproj | 2 +- UWP/Terrain.cs | 14 +++++++------- 4 files changed, 11 insertions(+), 11 deletions(-) rename UWP/{AbstarctPlayer.cs => AbstractPlayer.cs} (98%) diff --git a/UWP/AbstarctPlayer.cs b/UWP/AbstractPlayer.cs similarity index 98% rename from UWP/AbstarctPlayer.cs rename to UWP/AbstractPlayer.cs index af885c8..ef3f110 100644 --- a/UWP/AbstarctPlayer.cs +++ b/UWP/AbstractPlayer.cs @@ -2,7 +2,7 @@ namespace MrBoom { - public abstract class AbstarctPlayer : Sprite + public abstract class AbstractPlayer : Sprite { public int BombsPlaced; public bool rcDitonate = false; @@ -14,7 +14,7 @@ public abstract class AbstarctPlayer : Sprite private int maxBombsCount; private int lifeCount; - public AbstarctPlayer(Terrain map, Assets.MovingSpriteAssets animations, int maxBoom, int maxBombs) : base(map, animations, 3) + public AbstractPlayer(Terrain map, Assets.MovingSpriteAssets animations, int maxBoom, int maxBombs) : base(map, animations, 3) { Features = map.StartFeatures; this.maxBoom = maxBoom; diff --git a/UWP/Human.cs b/UWP/Human.cs index 71d0c47..1d55bf7 100644 --- a/UWP/Human.cs +++ b/UWP/Human.cs @@ -2,7 +2,7 @@ namespace MrBoom { - public class Human : AbstarctPlayer + public class Human : AbstractPlayer { public readonly IController Controller; diff --git a/UWP/MrBoom.csproj b/UWP/MrBoom.csproj index 77cee49..d360dad 100644 --- a/UWP/MrBoom.csproj +++ b/UWP/MrBoom.csproj @@ -96,7 +96,7 @@ PackageReference - + App.xaml diff --git a/UWP/Terrain.cs b/UWP/Terrain.cs index 292c23a..f678a2b 100644 --- a/UWP/Terrain.cs +++ b/UWP/Terrain.cs @@ -36,7 +36,7 @@ public Assets.Level LevelAssets private readonly List spawns; private readonly List powerUpList; private readonly Map map; - private readonly List players; + private readonly List players; private readonly List monsters; private readonly int startMaxFire; private readonly int startMaxBombsCount; @@ -81,7 +81,7 @@ public Terrain(int levelIndex, Assets assets) MaxApocalypse = Math.Max(fin, MaxApocalypse); } } - this.players = new List(); + this.players = new List(); this.startMaxBombsCount = map.StartMaxBombsCount; this.startMaxFire = map.StartMaxFire; @@ -140,7 +140,7 @@ public Terrain(int levelIndex, Assets assets) public void AddPlayer(Assets.MovingSpriteAssets movingSpriteAssets, IController controller) { - AbstarctPlayer sprite = new Human(this, movingSpriteAssets, controller, startMaxFire, startMaxBombsCount); + AbstractPlayer sprite = new Human(this, movingSpriteAssets, controller, startMaxFire, startMaxBombsCount); var spawn = this.spawns[this.generateSpawn()]; sprite.x = spawn.x * 16; @@ -176,7 +176,7 @@ public void Update() } int playersCount = 0; - foreach (AbstarctPlayer player in this.players) + foreach (AbstractPlayer player in this.players) { if (!player.IsDie) { @@ -412,7 +412,7 @@ public bool IsWalkable(int x, int y) } } - public void RcDitonate(AbstarctPlayer player) + public void RcDitonate(AbstractPlayer player) { } @@ -508,7 +508,7 @@ public Cell GeneratePowerUp(PowerUpType powerUpType) }; } - public void PutBomb(int cellX, int cellY, int maxBoom, bool rcAllowed, AbstarctPlayer owner) + public void PutBomb(int cellX, int cellY, int maxBoom, bool rcAllowed, AbstractPlayer owner) { SetCell(cellX, cellY, new Cell(TerrainType.Bomb) { @@ -610,7 +610,7 @@ public class Cell public int bombTime; public int maxBoom; public bool rcAllowed; - public AbstarctPlayer owner; + public AbstractPlayer owner; public Cell Next; public PowerUpType PowerUpType; public int OffsetX;