2023-07-18 17:09:27 +02:00
|
|
|
using pacMan.GameStuff;
|
|
|
|
using pacMan.GameStuff.Items;
|
2023-07-12 14:07:32 +02:00
|
|
|
|
|
|
|
namespace BackendTests.TestUtils;
|
|
|
|
|
2023-07-13 14:00:42 +02:00
|
|
|
internal static class Players
|
2023-07-12 14:07:32 +02:00
|
|
|
{
|
2023-07-20 18:06:30 +02:00
|
|
|
internal static Player Create(string colour) =>
|
|
|
|
new()
|
2023-07-12 14:07:32 +02:00
|
|
|
{
|
2023-07-19 23:25:54 +02:00
|
|
|
Username = colour,
|
2023-07-12 14:07:32 +02:00
|
|
|
Colour = colour,
|
|
|
|
PacMan = CreatePacMan(colour),
|
|
|
|
Box = CreateBox(colour)
|
|
|
|
};
|
|
|
|
|
|
|
|
internal static Character CreatePacMan(string colour) =>
|
|
|
|
new()
|
|
|
|
{
|
|
|
|
Colour = colour,
|
|
|
|
Type = CharacterType.PacMan
|
|
|
|
};
|
|
|
|
|
|
|
|
internal static Box CreateBox(string colour) =>
|
|
|
|
new()
|
|
|
|
{
|
2023-07-22 21:20:30 +02:00
|
|
|
Colour = colour
|
2023-07-12 14:07:32 +02:00
|
|
|
};
|
|
|
|
}
|