public void Activate(Player player, MainGameWindow main, bool AllowAction) { allowAction = AllowAction; Point spawnPoint = new Point(0, 20); playerProfile = new PlayerBaseStats { Location = spawnPoint }; playerProfile.Activate(player); Controls.Add(playerProfile); itemView = new PlayerItemView() { Location = spawnPoint }; itemView.Activate(player, main); itemView.Visible = false; Controls.Add(itemView); playerStatus = new PlayerStatusView { Location = spawnPoint }; playerStatus.Activate(player); playerStatus.Visible = false; Controls.Add(playerStatus); playerSpell = new PlayerSpellView { Location = spawnPoint }; playerSpell.Activate(player, main, allowAction); playerSpell.Visible = false; Controls.Add(playerSpell); playerWeapon = new PlayerWeaponView { Location = spawnPoint }; playerWeapon.Visible = false; playerWeapon.Activate(player, allowAction); Controls.Add(playerWeapon); playerTree = new PlayerTreeView { Location = spawnPoint }; playerTree.Visible = false; playerTree.Activate(player); Controls.Add(playerTree); active = playerProfile; tab = PlayerTab.stats; Render(); }
void SetPlayerStt(PlayerController player, PlayerStatusView playerStatusView) { playerStatusView.Init(player.BombQuantity, player.BlastRange, player.PlayerRunSpeed); }