Пример #1
0
 public PathToPlayer(Player player, IMap map, Texture2D sprite)
 {
     _player = player;
     _map = map;
     _sprite = sprite;
     _pathFinder = new PathFinder(map);
 }
 public CombatManager(Player player, List<AggressiveEnemy> aggressiveEnemies) {
     _player = player;
     _aggressiveEnemies = aggressiveEnemies;
 }
Пример #3
0
 private void addPlayer(Cell startingCell) {
     _player = new Player {
         X = startingCell.X,
         Y = startingCell.Y,
         Scale = 1f,
         Sprite = this.Content.Load<Texture2D>("character"),
         speed = 1,
         ArmorClass = 15,
         AttackBonus = 1,
         Damage = Dice.Parse("2d4"),
         Health = 50,
         Name = "Mr. Rogue"
     };
 }