-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit the number of test players, add the Rail Gun
- Loading branch information
1 parent
4736c10
commit f6b9973
Showing
8 changed files
with
73 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Runtime.Serialization; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SpaceWars.Logic.Exceptions; | ||
|
||
[Serializable] | ||
public class TooManyPlayersException : Exception | ||
{ | ||
public TooManyPlayersException() | ||
{ | ||
} | ||
|
||
public TooManyPlayersException(string? message) : base(message) | ||
{ | ||
} | ||
|
||
public TooManyPlayersException(string? message, Exception? innerException) : base(message, innerException) | ||
{ | ||
} | ||
|
||
protected TooManyPlayersException(SerializationInfo info, StreamingContext context) : base(info, context) | ||
Check warning on line 25 in src/SpaceWars.Logic/Exceptions/TooManyPlayersException.cs GitHub Actions / build
|
||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,3 @@ public PowerFist() : base("Power Fist", "Close-range heavy-hitter.") | |
PurchaseCost = 500; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace SpaceWars.Logic.Weapons; | ||
|
||
public class RailGun : Weapon | ||
{ | ||
public RailGun() : base("Rail Gun", "Long-range weapon with high damage.") | ||
{ | ||
Ranges = [ | ||
new WeaponRange(500, 100), | ||
new WeaponRange(600, 50), | ||
new WeaponRange(700, 25) | ||
]; | ||
MaxDamage = 10; | ||
PurchaseCost = 1_050; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters