public Shot(float x, float y, Vector2 direction, Person owner) { _x = x; _y = y; _direction = direction; _isRemoved = false; _owner = owner; _range = owner.ShotChar.Range; }
private void MoveDown(Person player, Room room) { var direction = new Vector2(0, -1); if (player.CanMove(direction, room)) { player.Move(direction); } }
private void MoveRight(Person player, Room room) { var direction = new Vector2(1, 0); if (player.CanMove(direction, room)) { player.Move(direction); } }