- takeCard(Card) - Method in class wcg.games.CardCollection
-
Take a specific card and return it,
if collection has at least one card; otherwise return null
.
- takeFirstCard() - Method in class wcg.games.CardCollection
-
Take the first card and return it,
if collection has at least one card.
- takeFirstCards(int) - Method in class wcg.games.CardCollection
-
Take given count of cards from the beginning of this collection.
- takeLastCard() - Method in class wcg.games.CardCollection
-
Take the last card and return it,
if collection has at least one card; otherwise return null
.
- testAddBot() - Method in class wcg.main.RealManagerTest
-
- testAddBot_invalid() - Method in class wcg.main.RealManagerTest
-
Create a game but ignore the id when adding a bot.
- testAddPlayer() - Method in class wcg.main.RealManagerTest
-
Check adding a player, without registering, with invalid password
- testCreateGame() - Method in class wcg.main.RealManagerTest
-
Check that game creation returns a game id
- testCreateGame_invalid() - Method in class wcg.main.RealManagerTest
-
Check that an invalid game name raises an exception
- testGetAvailableGames() - Method in class wcg.main.RealManagerTest
-
Check if an empty list of games is reported
- testGetAvailableGames_afterCreateGame() - Method in class wcg.main.RealManagerTest
-
Create several games and check that number of available games
increases accordingly
- testGetGameNames() - Method in class wcg.main.RealManagerTest
-
Check if the names of the implemented games are
reported by getGameNames()
- testGetInstance() - Method in class wcg.main.RealManagerTest
-
Check that an instance is available
- testGetRecentEvents() - Method in class wcg.main.RealManagerTest
-
Check that players added to a game receive events from that game.
- testPlayCards_HEARTS() - Method in class wcg.main.RealManagerTest
-
Test playing HERTS to the end
- testPlayCards_WAR() - Method in class wcg.main.RealManagerTest
-
Test playing WAR for a few rounds (or the end of the game)
- testPlayCards_WAR_invalidPlay() - Method in class wcg.main.RealManagerTest
-
Test playing WAR a do a invalid move:3 cards as first play
- TestPlayer(String) - Constructor for class wcg.main.RealManagerTest.TestPlayers.TestPlayer
-
- TestPlayers(int) - Constructor for class wcg.main.RealManagerTest.TestPlayers
-
Create a collection of n test players
- toString() - Method in class wcg.games.CardCollection
-
- toString() - Method in class wcg.shared.cards.Card
-
Show the card as a short string with value and suit
given by the toString()
methods of these enumerations.
- toString() - Method in enum wcg.shared.cards.CardSuit
-
Represent suits by their usual signs
CLUBS: ♣
DIAMONDS: ♦
HEARTS: ♥
SPADES: ♠
- toString() - Method in enum wcg.shared.cards.CardValue
-
Represent a value by a short (usually a single character) string.