Skip navigation links
A B C D E G H I M N O P R S T U V W 

G

GameBot - Class in wcg.games
An automatic card game player - a robot - to plays all kinds of card games.
GameBot(GameMaster) - Constructor for class wcg.games.GameBot
A GameBot instance for a particular GameMaster instance.
GameBot.PlayerCards - Class in wcg.games
 
gameEnded() - Method in class wcg.games.GameBot
Has this game ended? This information is notified by the GameEndEvent.
gameEnded - Variable in class wcg.main.RealManagerTest.TestPlayers.TestPlayer
 
GameEndEvent - Class in wcg.shared.events
An event reporting the end of the game and its final status.
GameEndEvent() - Constructor for class wcg.shared.events.GameEndEvent
 
GameEndEvent(String, Map<String, List<Card>>, int, String, Map<String, Integer>) - Constructor for class wcg.shared.events.GameEndEvent
Create an event for given game to report the winner.
GameEvent - Class in wcg.shared.events
Abstract class common to all game related events.
GameEvent() - Constructor for class wcg.shared.events.GameEvent
 
GameEvent(String) - Constructor for class wcg.shared.events.GameEvent
Create an instance with given id.
GameFactory - Class in wcg.games
Concrete participant of the Factory design pattern.
GameFactory() - Constructor for class wcg.games.GameFactory
 
GameInfo - Class in wcg.shared
Summary information on currently available games.
GameInfo() - Constructor for class wcg.shared.GameInfo
 
GameInfo(String, String, int, Date, Date) - Constructor for class wcg.shared.GameInfo
 
GameMaster - Class in wcg.games
Abstract class common to all game masters.
GameMaster() - Constructor for class wcg.games.GameMaster
Create a game and assign it an id.
GameMaster.GameStage - Enum in wcg.games
Enumeration representing the stages of the game.
GameObserver - Interface in wcg.games
An observer of events occurred in a game instance.
GamePlayingStrategy - Interface in wcg.games
A strategy for playing a particular game by an automated player (a bot).
GamePool - Class in wcg.main
Pool of games managed by their ID.
GamePool() - Constructor for class wcg.main.GamePool
Create an instance with a timer to schedule the remotion of expired games.
generateNick(GameMaster) - Method in class wcg.games.GameBot
Pick a name from a list of bot names, different from any of the nicks already in game.
getAllCardsOnTable() - Method in class wcg.games.GameBot
Convenience method to retrieve all cards on the table.
getAvailableGameInfos() - Method in class wcg.main.GamePool
Produces a list with information on games still available to human players
getAvailableGameInfos() - Method in class wcg.main.Manager
A list with information on games available to be played.
getAvailableGames() - Method in interface wcg.games.AbstractGameFactory
A list of available game names.
getAvailableGames() - Method in class wcg.games.GameFactory
 
getBackupFile() - Static method in class wcg.main.UserPool
Get the current file used for backup.
getCardComparator() - Method in class wcg.games.CardCollection
Card comparator used by this card collection.
getCardComparator() - Method in class wcg.games.GameBot
Card comparator for this game
getCardComparator() - Method in class wcg.games.GameMaster
The card comparator used in this game.
getCardComparator() - Method in class wcg.games.war.WarGameMaster
War uses a special card comparator, defined in this package
getCardGameStrategy() - Method in class wcg.games.GameMaster
A game playing strategy for this kind of game.
getCardGameStrategy() - Method in class wcg.games.hearts.HeartsGameMaster
Produce a game strategy for this game instance.
getCardGameStrategy() - Method in class wcg.games.war.WarGameMaster
There is a single strategy available for this game - WarGameStrategy.
getCardOnTable(String) - Method in class wcg.games.GameBot
Convenience method to retrieve the card on table from player with given nick.
getCardOnTable(String) - Method in class wcg.games.GameMaster
Convenience method to retrieve the single card on table of player with given nick.
getCards() - Method in class wcg.shared.events.SendCardsEvent
 
getCardsFromSuit(CardSuit) - Method in class wcg.games.CardCollection
New collection with same comparator only with cards from given suit.
getCardsLargerThan(Card) - Method in class wcg.games.CardCollection
New collection with same comparator and only with cards larger than given card
getCardsNotFromSuit(CardSuit) - Method in class wcg.games.CardCollection
New collection with same comparator only with cards other than given suit.
getCardsOnTable(String) - Method in class wcg.games.GameMaster
Retrieve cards on table of player with given nick.
getCardsOnTable() - Method in class wcg.shared.events.GameEndEvent
Cards on table in this turn for each player.
getCardsOnTable() - Method in class wcg.shared.events.RoundConclusionEvent
Cards on table in this turn for each player.
getCardsOnTable() - Method in class wcg.shared.events.RoundUpdateEvent
Cards on table in this turn for each player.
getCardsPerPlayer() - Method in class wcg.games.GameMaster
Number of cards each player receives at the start
getCardsPerPlayer() - Method in class wcg.games.hearts.HeartsGameMaster
All players get 1/4 of the deck cards.
getCardsPerPlayer() - Method in class wcg.games.war.WarGameMaster
Each player receives half of a complete deck when the game starts
getCardsSmallerThan(Card) - Method in class wcg.games.CardCollection
New collection with same comparator and only with cards smaller than given card
getCardsWithValue(CardValue) - Method in class wcg.games.CardCollection
New collection with same comparator and the cards with given value from any suit.
getDeck() - Static method in class wcg.games.CardCollection
A CardCollection with a deck cards of all suits and values, backed by the default card comparator
getDeck(CardComparator) - Static method in class wcg.games.CardCollection
A {code CardCollection} with a deck of cards of all suits and values with given card comparator
getDeck() - Method in class wcg.games.GameMaster
The deck of cards used by this game, backed by the defined card comparator.
getExpirationtime() - Static method in class wcg.games.GameMaster
Time in milliseconds for a game to expire.
getFirstCard() - Method in class wcg.games.CardCollection
Get first card from collection.
getFullDeck() - Static method in class wcg.games.CardCollection
A CardCollection with a full deck of cards, including 2 jokers, backed by the default card comparator
getFullDeck(CardComparator) - Static method in class wcg.games.CardCollection
A CardCollection with a full deck of cards, including 2 jokers, backed by the given card comparator
getGameId() - Method in class wcg.games.GameMaster
A string to identify this particular game instance.
getGameID() - Method in class wcg.shared.events.GameEvent
The id of game instance that originated this event.
getGameId() - Method in class wcg.shared.GameInfo
Id of this game.
getGameMaster(String) - Method in class wcg.main.GamePool
The game master with given id
getGameName() - Method in class wcg.games.GameMaster
The name of this kind of game.
getGameName() - Method in class wcg.games.hearts.HeartsGameMaster
Name of this game in capitals, as in GameFactory.
getGameName() - Method in class wcg.games.war.WarGameMaster
Name of this game all in capitals, as in GameFactory..
getGameName() - Method in class wcg.shared.GameInfo
Name of this game.
getGameNames() - Method in class wcg.main.GamePool
 
getGameNames() - Method in class wcg.main.Manager
A list of available game names, required to create a new game instance.
getHand() - Method in class wcg.games.GameBot
The collection of cards this player holds in her hand.
getHand(String) - Method in class wcg.games.GameMaster
Get a cards in given player's hand.
getHighestCard() - Method in class wcg.games.CardCollection
Get the highest card using this collection comparator If this collection is empty returns null.
getHighestValueCards() - Method in class wcg.games.CardCollection
New collection with same comparator and the cards with the highest value from any suit.
getInfo() - Method in class wcg.games.GameMaster
Information describing this game.
getInstance() - Static method in class wcg.games.DefaultCardComparator
Single instance if this class.
getInstance() - Static method in class wcg.main.Manager
Single instance of this class.
getInstance() - Static method in class wcg.main.UserPool
Single instance of this class.
getLastAccessDate() - Method in class wcg.shared.GameInfo
Moment when this game was last accessed: a player was added or a card played.
getLastCard() - Method in class wcg.games.CardCollection
Get first card from collection If this collection is empty returns null.
getLowestCard() - Method in class wcg.games.CardCollection
Get the lowest card using this collection comparator.
getLowestValueCards() - Method in class wcg.games.CardCollection
New collection with same comparator and the cards with the lowest value from any suit.
getMode() - Method in class wcg.games.GameBot
Mode in which the game currently is.
getMode() - Method in class wcg.games.GameMaster
Retrieve current game mode.
getMode() - Method in class wcg.shared.events.RoundUpdateEvent
Current mode
getNick() - Method in class wcg.games.GameBot
 
getNick() - Method in interface wcg.games.Player
Players nick, it will used as an ID.
getNick() - Method in class wcg.main.User
 
getNickWithTurn() - Method in class wcg.games.GameBot
Nick of player currently with turn.
getNickWithTurn() - Method in class wcg.games.GameMaster
The nick of the player currently with the turn to play.
getNickWithTurn() - Method in class wcg.shared.events.RoundUpdateEvent
Nick of player with turn.
getNumberOfPlayers() - Method in class wcg.games.GameMaster
Number of players in this game.
getNumberOfPlayers() - Method in class wcg.games.hearts.HeartsGameMaster
The number of players in HEARTS is 4.
getNumberOfPlayers() - Method in class wcg.games.war.WarGameMaster
WAR is a 2 player game
getPlayedCards() - Method in class wcg.games.GameBot
All cards already played in this game.
getPlayer(int) - Method in class wcg.main.RealManagerTest.TestPlayers
Player with given index
getPlayerNicks() - Method in class wcg.games.GameMaster
A list with the nicks of players in this game.
getPlayersCount() - Method in class wcg.shared.GameInfo
Number players currently in this game.
getPlayerWithNick(String) - Method in class wcg.main.RealManagerTest.TestPlayers
Player with given nick
getPlayerWithTurn() - Method in class wcg.main.RealManagerTest.TestPlayers
Player currently with turn
getPoints() - Method in class wcg.games.GameBot
Points received by each player in the game.
getPoints() - Method in class wcg.shared.events.GameEndEvent
Points of all players
getPoints() - Method in class wcg.shared.events.RoundConclusionEvent
Points of all players
getRandomCard() - Method in class wcg.games.CardCollection
A random card from this collection.
getRecentEvents(String, String) - Method in class wcg.main.Manager
Get a list of recent events sent to the given user by game instances.
getRecentEvents() - Method in class wcg.main.User
A list of pending events received by this user.
getRoundPoints(String) - Method in class wcg.games.GameMaster
Points collected by the player with given nick in the last round.
getRoundPoints(String) - Method in class wcg.games.hearts.HeartsGameMaster
Report the points of given player, as computed in beforeRoundConclusion().
getRoundPoints(String) - Method in class wcg.games.war.WarGameMaster
No points in turns.
getRoundsCompleted() - Method in class wcg.games.GameBot
Number of rounds completed in this game.
getRoundsCompleted() - Method in class wcg.games.GameMaster
Number of rounds completed in this game.
getRoundsCompleted() - Method in class wcg.shared.events.GameEndEvent
Number of rounds completed in this game.
getRoundsCompleted() - Method in class wcg.shared.events.RoundConclusionEvent
Number of rounds completed in this game.
getRoundsCompleted() - Method in class wcg.shared.events.RoundUpdateEvent
Number of rounds completed in this game.
getStartDate() - Method in class wcg.shared.GameInfo
Moment when this game was created.
getStrategy() - Method in class wcg.games.GameBot
Current strategy for picking cards
getSuit() - Method in class wcg.shared.cards.Card
 
getSuitToFollow() - Method in class wcg.games.GameBot
Convenience method to retrieve the trump suite .
getSuitToFollow() - Method in class wcg.games.GameMaster
Convenience method with suit to follow: the suit of the first card played in this round.
getSuitToFollow() - Method in class wcg.main.RealManagerTest.TestPlayers
Suit of the first cards played in this round.
getUser(String, String) - Method in class wcg.main.UserPool
Retrieve the user with given nick if it authenticates with given password.
getValue() - Method in class wcg.shared.cards.Card
 
getWinner() - Method in class wcg.games.GameBot
Nick of the player that won the game: null if the game was not ended yet or ended in a tie.
getWinner() - Method in class wcg.games.GameMaster
Who is the winner of this game? This method is invoked if game GameMaster.hasEnded().
getWinner() - Method in class wcg.games.hearts.HeartsGameMaster
The winner is the player with most points (less negative points).
getWinner() - Method in class wcg.games.war.WarGameMaster
The winner is the player with cards to play.
getWinner() - Method in class wcg.shared.events.GameEndEvent
The winner of this game.
A B C D E G H I M N O P R S T U V W 
Skip navigation links