- gainProvince() - Method in interface se.chalmers.dat255.risk.model.IPlayer
-
Increments the number of provinces that the player currently controls.
- gainProvince() - Method in class se.chalmers.dat255.risk.model.Player
-
- Game - Class in se.chalmers.dat255.risk.model
-
The top game class.
- Game() - Constructor for class se.chalmers.dat255.risk.model.Game
-
Creates a new Game.
- getActivePlayer() - Method in class se.chalmers.dat255.risk.model.Game
-
- getActivePlayer() - Method in interface se.chalmers.dat255.risk.model.IGame
-
Fetches the player who has the current turn.
- getActivePlayer() - Method in class se.chalmers.dat255.risk.model.TurnAndPhaseManager
-
- getActivePlayer() - Method in class se.chalmers.dat255.risk.model.WorldHandler
-
get the player whose turn it is
- getBonus() - Method in class se.chalmers.dat255.risk.model.BonusHandler
-
Returns the number of bonus units the current player has.
- getBonus() - Method in class se.chalmers.dat255.risk.model.WorldHandler
-
returns the bonus of the current player
- getBonus(IPlayer) - Method in class se.chalmers.dat255.risk.model.WorldMap
-
- getBonusUnitsLeft() - Method in class se.chalmers.dat255.risk.model.Game
-
- getBonusUnitsLeft() - Method in interface se.chalmers.dat255.risk.model.IGame
-
Method for retrieving the number of units the player has left to place.
- getCards() - Method in interface se.chalmers.dat255.risk.model.IPlayer
-
Returns the cards on the players hand
- getCards() - Method in class se.chalmers.dat255.risk.model.Player
-
- getCurrentPhase() - Method in class se.chalmers.dat255.risk.model.Game
-
- getCurrentPhase() - Method in interface se.chalmers.dat255.risk.model.IGame
-
Fetches the phase the game is in
- getDeckList() - Static method in class se.chalmers.dat255.risk.model.Deck
-
- getDiscard() - Static method in class se.chalmers.dat255.risk.model.Deck
-
- getGameMode() - Method in class se.chalmers.dat255.risk.model.Game
-
- getGameMode() - Method in interface se.chalmers.dat255.risk.model.IGame
-
retrieves current gameMode
- getGameProvinces() - Method in class se.chalmers.dat255.risk.model.Game
-
- getGameProvinces() - Method in interface se.chalmers.dat255.risk.model.IGame
-
Retrieves all provinces
- getId() - Method in interface se.chalmers.dat255.risk.model.IPlayer
-
returns a players id
- getId() - Method in interface se.chalmers.dat255.risk.model.IProvince
-
Fetches the string identification of this province
- getId() - Method in class se.chalmers.dat255.risk.model.Player
-
- getId() - Method in class se.chalmers.dat255.risk.model.Province
-
- getInstance() - Static method in class se.chalmers.dat255.risk.model.Deck
-
- getMissionText(IPlayer) - Method in class se.chalmers.dat255.risk.model.Game
-
- getMissionText(IPlayer) - Method in interface se.chalmers.dat255.risk.model.IGame
-
Returns a String that discribes your mission.
- getName() - Method in class se.chalmers.dat255.risk.model.Card
-
- getName() - Method in interface se.chalmers.dat255.risk.model.ICard
-
Method for accessing the name(id) of the province belonging to a card.
- getName() - Method in interface se.chalmers.dat255.risk.model.IPlayer
-
Returns the name of the player.
- getName() - Method in class se.chalmers.dat255.risk.model.Player
-
- getNew() - Method in class se.chalmers.dat255.risk.model.WorldHandler
-
Fetches the second province that was saved
- getNrOfProvinces() - Method in interface se.chalmers.dat255.risk.model.IPlayer
-
Returns the number of provinces that the player currently controls.
- getNrOfProvinces() - Method in class se.chalmers.dat255.risk.model.Player
-
- getOld() - Method in class se.chalmers.dat255.risk.model.WorldHandler
-
Fetches the first province that was saved
- getOwner(String) - Method in class se.chalmers.dat255.risk.model.Game
-
- getOwner(String) - Method in interface se.chalmers.dat255.risk.model.IGame
-
Method for finding the owner of an province
- getOwner(String) - Method in class se.chalmers.dat255.risk.model.WorldHandler
-
Fetches the owner of a province
- getOwner(String) - Method in class se.chalmers.dat255.risk.model.WorldMap
-
Returns ownership of a certain territory.
- getPhase() - Method in class se.chalmers.dat255.risk.model.TurnAndPhaseManager
-
- getPhase() - Method in enum se.chalmers.dat255.risk.model.TurnAndPhaseManager.Phase
-
- getPhase() - Method in class se.chalmers.dat255.risk.model.WorldHandler
-
fetches the current phase enum
- getPhaseHandler() - Method in class se.chalmers.dat255.risk.model.EventHandler
-
- getPlayers() - Method in class se.chalmers.dat255.risk.model.Game
-
- getPlayers() - Method in interface se.chalmers.dat255.risk.model.IGame
-
Fetches all players
- getPlayers() - Method in class se.chalmers.dat255.risk.model.WorldHandler
-
method for getting all players
- getPlayersContinents(IPlayer) - Method in class se.chalmers.dat255.risk.model.WorldHandler
-
returns all continents a player owns
- getPlayersContinents(IPlayer) - Method in class se.chalmers.dat255.risk.model.WorldMap
-
- getProvinces() - Method in class se.chalmers.dat255.risk.model.WorldHandler
-
fetches a list of all provinces
- getProvinces() - Method in class se.chalmers.dat255.risk.model.WorldMap
-
- getSize() - Static method in class se.chalmers.dat255.risk.model.Deck
-
- getText(IPlayer) - Method in class se.chalmers.dat255.risk.model.MissionHandler
-
Returns a missions mission-text.
- getType() - Method in class se.chalmers.dat255.risk.model.Card
-
- getType() - Method in interface se.chalmers.dat255.risk.model.ICard
-
Method for accessing the type of a card.
- getUnits() - Method in interface se.chalmers.dat255.risk.model.IProvince
-
Getter for units in the province
- getUnits() - Method in class se.chalmers.dat255.risk.model.Province
-
- getWinner() - Method in class se.chalmers.dat255.risk.model.MissionHandler
-
- getWorldMap() - Method in class se.chalmers.dat255.risk.model.WorldHandler
-
method for reaching the worldmap
- giveCard() - Static method in class se.chalmers.dat255.risk.model.Deck
-
Method for dealing a card.
- giveMission(IPlayer, int, HashMap<IPlayer, MissionHandler.Mission>, List<MissionHandler.Mission>) - Method in class se.chalmers.dat255.risk.model.MissionHandler
-
Give a player his/hers mission