A C D E F G H I J L M N O P R S T

A

addMove(Move) - Method in class rolec.GameHistory
Adds a move to the GameHistory
addPlayer(Player) - Method in class rolec.Players
Adds a player to the group of players
AI - Interface in rolec
This interface represents an AI that may be used by a player to select a move

C

Card - Class in rolec
This clas represents a card used in the game of FranksZoo
Card(Element) - Constructor for class rolec.Card
Constructs a new card by reading an xml-file specifying the features of the card
cards() - Method in class rolec.Deck
Returns a Vector containing all Cards in the Deck
cards() - Method in class rolec.GameHistory
Returns the cards left in the hands of the players
cardsLeft() - Method in class rolec.GameHistory
Returns the total number of cards left in the hands of the Players
cardsLeftForPlayer(int) - Method in class rolec.GameHistory
Returns the total number of cards left in the hands of one specific Player
cardsLeftOfType(int) - Method in class rolec.GameHistory
Returns the total number of cards of one specific type left in the hands of the Players
cardsPlayed() - Method in class rolec.GameHistory
Returns the total number of cards played so far during the game
cardsPlayed(int, int) - Method in class rolec.GameHistory
Returns the number of cards of one specific type played so far during the game by one specific Player
cardsPlayedByPlayer(int) - Method in class rolec.GameHistory
Returns the number of cards played so far during the game by one specific Player
cardsPlayedOfType(int) - Method in class rolec.GameHistory
Returns the number of cards of one specific type played so far during the game
clone() - Method in class rolec.GameHistory
Returns a cloned instance of the GameHistory
clone() - Method in class rolec.Player
Clones this player
clone(AI) - Method in class rolec.Player
Clones this player with a specific AI
CustomClassLoader - Class in rolec
This class loads classes from the file "ai.conf"
CustomClassLoader() - Constructor for class rolec.CustomClassLoader
Constructs a new CustomClassLoader

D

dealCard(Card) - Method in class rolec.Player
Deals a card to the player
Deck - Class in rolec
This class represents the Deck of cards in a game of Frank's Zoo
Deck(int, Element) - Constructor for class rolec.Deck
Constructs a new deck of cards

E

endGame(Player, Deck, GameHistory, boolean) - Method in interface rolec.AI
Indicates that one game round has ended
endGame(boolean) - Method in class rolec.Player
 
equals(Move) - Method in class rolec.Move
Returns whether the Move is exactly equal to another Move (i.e., the cards played in both Moves are exactly the same)

F

findClass(String) - Method in class rolec.CustomClassLoader
Finds a specific class
first() - Method in class rolec.Players
Returns the player who starts

G

Game - Class in rolec
 
Game(int, Deck, boolean) - Constructor for class rolec.Game
 
GameHistory - Class in rolec
This class keep track of all moves played during a game of Frank's Zoo
GameHistory(int, Deck, int[]) - Constructor for class rolec.GameHistory
Constructs a new, empty GameHistory
getCard() - Method in class rolec.Move
Returns the NormalCard played in this move
getCards() - Method in class rolec.Deck
Returns the cards in the deck
getCards() - Method in class rolec.Player
Returns an array representing the player hand.
getDeck() - Method in class rolec.GameHistory
Returns the Deck used in the Game
getHistory() - Method in class rolec.Player
Returns the GameHistory of the player
getID() - Method in class rolec.Card
Returns the ID of the card
getID() - Method in class rolec.Player
Returns the ID of this player
getJokerCard() - Method in class rolec.Move
Returns the JokerCard played in this move
getMoves() - Method in class rolec.GameHistory
Returns the moves played in this game
getMoves(Move) - Method in class rolec.Player
Returns all possible moves to be played in response to a specific move.
getName() - Method in class rolec.Card
Returns the name of the card
getNumber() - Method in class rolec.Card
Returns the number of cards of this type in the Deck
getNumber() - Method in class rolec.Move
Returns the number of NormalCards played in this move
getOrder() - Method in class rolec.GameHistory
Returns the order in which players take turns
getOrder() - Method in class rolec.Players
Returns the order in which players take turns
getPlayer() - Method in class rolec.Move
Returns the ID of the Player playing this move
getPredators() - Method in class rolec.NormalCard
Returns the predators of this card
getPreys() - Method in class rolec.NormalCard
Returns the preys of this card
getReplacement() - Method in class rolec.NormalCard
Returns the card by which this card may be replaced
getReplacing() - Method in class rolec.SpecialCard
Returns the types of cards that this card may replace
getSpecialCard() - Method in class rolec.Move
Returns the SpecialCard played in this move
getTotal() - Method in class rolec.Move
Returns the totalNumber of cards played during in this move
getType(int) - Method in class rolec.Deck
Returns the Card with a specific ID
getTypes() - Method in class rolec.Deck
Returns the various types of cards in the deck

H

hasJoker() - Method in class rolec.Player
Returns the ID of the joker

I

isChoice() - Method in class rolec.Move
Returns whether this move was a choice or forced (only a pass can be forced)
isPass() - Method in class rolec.Move
Returns whether this move was a pass

J

JokerCard - Class in rolec
This class represents a joker within the game of FranksZoo
JokerCard(Element) - Constructor for class rolec.JokerCard
Constructs a new JokerCard from an xml-file specifying the features of the JokerCard

L

loadClass(String) - Method in class rolec.CustomClassLoader
Loads a specific class

M

Move - Class in rolec
This class represents a move within the game of FranksZoo.
Move(Player) - Constructor for class rolec.Move
Constructs a new pass Move; no cards are played
Move(Player, NormalCard, SpecialCard, JokerCard, int) - Constructor for class rolec.Move
Constructs a new Move in which a number of cards is played.

N

next(Player) - Method in class rolec.Players
Returns the player next to a specific player
NormalCard - Class in rolec
This class represents a NormalCard within the game of Frank's Zoo.
NormalCard(Element) - Constructor for class rolec.NormalCard
Constructs a NormalCard from a xml-file specifying the features of the card
numberOfCards() - Method in class rolec.Player
Returns the number of cards in the hand of the player

O

out() - Method in class rolec.Player
Indicates whether this player has played all of his cards

P

play(int, int) - Method in class rolec.Game
Plays a number of games of Frank's Zoo
Player - Class in rolec
This card represents a Player in the game of Frank's Zoo
Player(int, AI, GameHistory) - Constructor for class rolec.Player
Constructs a new Player
player(int) - Method in class rolec.Players
Returns a specific Player
playerCount() - Method in class rolec.GameHistory
Returns the number of players in the Game
Players - Class in rolec
This class represents the group of players in a game of Frank's Zoo
Players(int) - Constructor for class rolec.Players
Constructs a new group of Players
Players(int, int[]) - Constructor for class rolec.Players
Constructs a new group of Players that take turns in a specific order
playersOut() - Method in class rolec.GameHistory
Returns the number of players that are out at the moment
print() - Method in class rolec.Card
Prints the card
print() - Method in class rolec.Deck
Prints the deck
print() - Method in class rolec.GameHistory
Prints the GameHistory
printHand() - Method in class rolec.Player
Prints the player hand
printOrder() - Method in class rolec.GameHistory
Prints the order in which players take turns
printResults() - Method in class rolec.Game
Prints the number of wins and the score for each player

R

rolec - package rolec
 

S

selectMove(Move, Player, Deck, GameHistory, boolean) - Method in interface rolec.AI
Selects a move from the list of possible moves based on the implemented AI
selectMove(Move, boolean) - Method in class rolec.Player
Selects a move in response to a specific move
size() - Method in class rolec.Deck
Returns the number of cards in the deck
size() - Method in class rolec.Players
Returns the number of players
SpecialCard - Class in rolec
This class represents a card that may be used as a NormalCard, but may also be used as a replacement for a specific type of NormalCard
SpecialCard(Element) - Constructor for class rolec.SpecialCard
Constructs a SpecialCard from a xml-file specifying the features of the card

T

toString() - Method in class rolec.Card
Returns the String representation of the card
toString() - Method in class rolec.Deck
Returns a String representation of the deck
toString() - Method in class rolec.Move
Returns the String representation of this move
toString() - Method in class rolec.Player
Returns a String representation of this Player

A C D E F G H I J L M N O P R S T