public void update() { player = App.Manager.teams[App.Manager.currentTeam].seasons[App.Manager.currentSeason].players[App.Manager.currentPlayer]; }
//returns the index of a player in the manager model, given a player instance from a list selector. public int getPlayerIndex(Player player) { int index = App.Manager.teams[App.Manager.currentTeam].seasons[App.Manager.currentSeason].players.IndexOf(player); return index; }
public void createPlayer(Player newPlayer) { App.Manager.teams[App.Manager.currentTeam].seasons[App.Manager.currentSeason].players.Add(newPlayer); }