public void Update() { FarmForm.UpdatePlayerLevel(Player.Level); FarmForm.UpdatePlayerExp(Player.Exp, Player.ExpForNextLevel); FarmForm.UpdatePlayerGold(Player.Gold); FarmForm.UpdatePlayerHealth(Player.Health, Player.GetMaxHealth()); FarmForm.UpdateMonsterHealth(_monster.Health, _monster.MaxHealth); FarmForm.MonsterInfo(_monster.Description); }
// TODO : сделать какую нибудь информацию о смерти игрока на форме. public void Attack() { lock (_syncRoot) { if (Player.IsDead) { return; } Player.Attack(_monster); if (_monster.IsDead) { var drop = _monster.GetDrop(); Player.TakeDrop(drop); Player.Health = Player.GetMaxHealth(); FarmForm.UpdateDropInfo(new DropInfo(_monster, drop)); NewMonster(); } } }
public void Start() { Player.Respawn(); NewMonster(); FarmForm.Start(); }
public FarmController(Player player, FarmForm farm_form) { Player = player; FarmForm = farm_form; }