Skip to content

Commit

Permalink
Rename AbstarctPlayer to AbstractPlayer.
Browse files Browse the repository at this point in the history
  • Loading branch information
chemodax committed Aug 12, 2023
1 parent f60f33c commit 75e4a4e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions UWP/AbstarctPlayer.cs → UWP/AbstractPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace MrBoom
{
public abstract class AbstarctPlayer : Sprite
public abstract class AbstractPlayer : Sprite
{
public int BombsPlaced;
public bool rcDitonate = false;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion UWP/Human.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace MrBoom
{
public class Human : AbstarctPlayer
public class Human : AbstractPlayer
{
public readonly IController Controller;

Expand Down
2 changes: 1 addition & 1 deletion UWP/MrBoom.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
</PropertyGroup>
<ItemGroup>
<Compile Include="AbstarctPlayer.cs" />
<Compile Include="AbstractPlayer.cs" />
<Compile Include="AnimatedImage.cs" />
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
Expand Down
14 changes: 7 additions & 7 deletions UWP/Terrain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public Assets.Level LevelAssets
private readonly List<Spawn> spawns;
private readonly List<PowerUpType> powerUpList;
private readonly Map map;
private readonly List<AbstarctPlayer> players;
private readonly List<AbstractPlayer> players;
private readonly List<Monster> monsters;
private readonly int startMaxFire;
private readonly int startMaxBombsCount;
Expand Down Expand Up @@ -81,7 +81,7 @@ public Terrain(int levelIndex, Assets assets)
MaxApocalypse = Math.Max(fin, MaxApocalypse);
}
}
this.players = new List<AbstarctPlayer>();
this.players = new List<AbstractPlayer>();

this.startMaxBombsCount = map.StartMaxBombsCount;
this.startMaxFire = map.StartMaxFire;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -412,7 +412,7 @@ public bool IsWalkable(int x, int y)
}
}

public void RcDitonate(AbstarctPlayer player)
public void RcDitonate(AbstractPlayer player)
{

}
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 75e4a4e

Please sign in to comment.