public void TestAddingCreature() { GameSetter.SetSampleMap(3, 3); var player = new Player(new MobileObjectInitialization(new Point(0, 0), Direction.Up)); MapManager.AddCreatureToMap(player); Assert.IsTrue(MapManager.Map[0, 0].Creature is Player); }
public void TestInteractWithNoRemoval() { GameSetter.SetSampleMap(3, 3); var container = MapManager.Map[1, 1].ObjectContainer; container.AddDecor(new Table()); Assert.True(container.ShowDecor() is Table); var player = new Player(new MobileObjectInitialization(new Point(0, 1), Direction.Right)); MapManager.AddCreatureToMap(player); container.Interact(player); Assert.True(container.ShowDecor() is Table); }