public Move ( |
||
creatures | ||
newPosition | Point | |
리턴 | void |
private void MakeTurnGo(DirectionEnum direction, Membrane creature) { if (direction == DirectionEnum.Stay) { return; } var newPosition = DirectionEx.PointByDirection(direction, creature.Position); if (!CommonMethods.IsValidAndFree(newPosition, Creatures)) { return; } creature.Move(Creatures, newPosition); Stats.AddStats(direction); }
private void MakeTurnGo(DirectionEnum direction, Membrane creature) { if (direction == DirectionEnum.Stay) return; var newPosition = DirectionEx.PointByDirection(direction, creature.Position); if (!CommonMethods.IsValidAndFree(newPosition, Creatures)) return; creature.Move(Creatures, newPosition); Stats.AddStats(direction); }