Index

A C D E G H I K L M P R S T U V 
All Classes and Interfaces|All Packages|Serialized Form

A

addCard(CardImpl) - Method in class ca.uqam.info.model.ColumnCard
Helper method to push a card to the deck
addCard(CardImpl) - Method in class ca.uqam.info.model.HandPlayerCards
Helper method to add a carte in the PlayerCard
addCard(CardImpl) - Method in class ca.uqam.info.model.Player
Helper method to add a carte in the PlayerCard
addModelObserver(ModelObserver) - Method in class ca.uqam.info.controller.ControllerImpl
Adds a new observer to the list and immediately notifies the added observer with the current model state.
advancePlayer() - Method in class ca.uqam.info.model.SkyjoModelImpl
Sets the current player to the next player in order.
augmenteSizeColumn() - Method in class ca.uqam.info.model.HandPlayerCards
 

C

ca.uqam.info.controller - package ca.uqam.info.controller
 
ca.uqam.info.model - package ca.uqam.info.model
 
CARD_0 - Enum constant in enum class ca.uqam.info.model.CardDistribution
 
CARD_1 - Enum constant in enum class ca.uqam.info.model.CardDistribution
 
CARD_10 - Enum constant in enum class ca.uqam.info.model.CardDistribution
 
CARD_11 - Enum constant in enum class ca.uqam.info.model.CardDistribution
 
CARD_12 - Enum constant in enum class ca.uqam.info.model.CardDistribution
 
CARD_2 - Enum constant in enum class ca.uqam.info.model.CardDistribution
 
CARD_3 - Enum constant in enum class ca.uqam.info.model.CardDistribution
 
CARD_4 - Enum constant in enum class ca.uqam.info.model.CardDistribution
 
CARD_5 - Enum constant in enum class ca.uqam.info.model.CardDistribution
 
CARD_6 - Enum constant in enum class ca.uqam.info.model.CardDistribution
 
CARD_7 - Enum constant in enum class ca.uqam.info.model.CardDistribution
 
CARD_8 - Enum constant in enum class ca.uqam.info.model.CardDistribution
 
CARD_9 - Enum constant in enum class ca.uqam.info.model.CardDistribution
 
CARD_NEGATIVE_1 - Enum constant in enum class ca.uqam.info.model.CardDistribution
 
CARD_NEGATIVE_2 - Enum constant in enum class ca.uqam.info.model.CardDistribution
 
CardDistribution - Enum Class in ca.uqam.info.model
This Enum class represents the distribution of the card of the Skyjo game conform of the rule.
CardImpl - Class in ca.uqam.info.model
Implementation of the Card interface representing a Skyjo card.
CardImpl() - Constructor for class ca.uqam.info.model.CardImpl
 
CardImpl(int, CardType) - Constructor for class ca.uqam.info.model.CardImpl
Constructs a new CardImpl with the specified type and value.
ColumnCard - Class in ca.uqam.info.model
This class is needed to create the row of each column of de PlayerCard
ColumnCard() - Constructor for class ca.uqam.info.model.ColumnCard
Constructor for the column card.
concatenateDeck(Deck) - Method in class ca.uqam.info.model.Deck
Helper method to concatenate all the list of split to the deck
ControllerImpl - Class in ca.uqam.info.controller
 
ControllerImpl() - Constructor for class ca.uqam.info.controller.ControllerImpl
 

D

Deck - Class in ca.uqam.info.model
Custom data structure implementation for Skyjo deck.
Deck() - Constructor for class ca.uqam.info.model.Deck
Constructor for the Deck.
Deck.NodeCard - Class in ca.uqam.info.model
Inner Class NodeCard Helper for create a stack
doCommand(int) - Method in class ca.uqam.info.controller.ControllerImpl
Modifies model state according to the action index of a given player's actions.

E

eliminateColumn(int, int) - Method in class ca.uqam.info.model.SkyjoModelImpl
 
eliminateRow(int, int) - Method in class ca.uqam.info.model.SkyjoModelImpl
 
endGame() - Method in class ca.uqam.info.model.SkyjoModelImpl
Definitely ends the game.
equals(Object) - Method in class ca.uqam.info.model.CardImpl
Compares this card to another object for equality.
execute() - Method in class ca.uqam.info.controller.KeepColumnCard
Executes the reveal card command by: 1.
execute() - Method in class ca.uqam.info.controller.RejectCardCommand
Executes the reject card command by: 1.
execute() - Method in class ca.uqam.info.controller.RemoveColumnCard
Executes the reveal card command by: 1.
execute() - Method in class ca.uqam.info.controller.ReplaceCardCommand
Executes the reveal card command by: 1.
execute() - Method in class ca.uqam.info.controller.RevealCardCommand
Executes the reveal card command by: 1.
execute() - Method in class ca.uqam.info.controller.RevealFreshCardCommand
Executes the reveal fresh card command by: 1.
execute() - Method in class ca.uqam.info.controller.SelectDiscardCommand
Executes the select discard command by: 1.

G

getAmountDeckCards() - Method in class ca.uqam.info.model.SkyjoModelImpl
Getter to look up how many cards are currently on the deck.
getAmountDiscardPileCards() - Method in class ca.uqam.info.model.SkyjoModelImpl
Getter to look up how many cards are currently on discard pile.
getAmountPlayers() - Method in class ca.uqam.info.model.SkyjoModelImpl
Getter to look up how many players are involved in the current session.
getBufferCard() - Method in class ca.uqam.info.model.SkyjoModelImpl
Returns buffer card without clearing it from buffer.
getCard() - Method in class ca.uqam.info.model.CardImpl
Getter the Card
getCard() - Method in class ca.uqam.info.model.Deck.NodeCard
Getter to the cardImpl
getCard(int, int) - Method in class ca.uqam.info.model.HandPlayerCards
Getter the card
getCardForPlayerByPosition(int, int, int) - Method in class ca.uqam.info.model.SkyjoModelImpl
Getter to obtain card of player at specific position.
getColumnList() - Method in class ca.uqam.info.model.HandPlayerCards
Getter the list of column of the player card
getCount() - Method in enum class ca.uqam.info.model.CardDistribution
Getter The number of occurence of this categorie of card
getCurrentDimensionsX(int) - Method in class ca.uqam.info.model.SkyjoModelImpl
Getter for current amount of cards horizontally laid out in front of specified player.
getCurrentDimensionsY(int) - Method in class ca.uqam.info.model.SkyjoModelImpl
Getter for current amount of cards vertically laid out in front of specified player.
getCurrentPlayerCommands() - Method in class ca.uqam.info.controller.ControllerImpl
Generator for all valid actions of the current player.
getCurrentPlayerIndex() - Method in class ca.uqam.info.model.SkyjoModelImpl
Getter for the index of the current player.
getFollowUpCommands() - Method in class ca.uqam.info.controller.KeepColumnCard
Returns any follow-up commands that should be available after this command executes.
getFollowUpCommands() - Method in class ca.uqam.info.controller.RejectCardCommand
After execution of a command calling this method creates a list of legal follow-up commands.
getFollowUpCommands() - Method in class ca.uqam.info.controller.RemoveColumnCard
Returns any follow-up commands that should be available after this command executes.
getFollowUpCommands() - Method in class ca.uqam.info.controller.ReplaceCardCommand
Returns any follow-up commands that should be available after this command executes.
getFollowUpCommands() - Method in class ca.uqam.info.controller.RevealCardCommand
Returns any follow-up commands that should be available after this command executes.
getFollowUpCommands() - Method in class ca.uqam.info.controller.RevealFreshCardCommand
After execution of a command calling this method creates a list of legal follow-up commands.
getFollowUpCommands() - Method in class ca.uqam.info.controller.SelectDiscardCommand
After execution of a command calling this method creates a list of legal follow-up commands.
getGameEnder() - Method in class ca.uqam.info.model.SkyjoModelImpl
Returns index of player who triggered game end, if isGameOverInitiated returns true.
getInitialDimensionsX() - Method in class ca.uqam.info.model.SkyjoModelImpl
Returns the initial amount of cards horizontally laid out in front of each player.
getInitialDimensionsY() - Method in class ca.uqam.info.model.SkyjoModelImpl
Returns the initial amount of cards vertically laid out in front of each player.
getModel() - Method in class ca.uqam.info.controller.ControllerImpl
SkyjoModelReadOnly getModel() Read only access to current version of model.
getNamesPlayer() - Method in class ca.uqam.info.model.Player
Getter the name of the player
getNextCard() - Method in class ca.uqam.info.model.Deck.NodeCard
Getter to newt Card
getPlayerCard() - Method in class ca.uqam.info.model.Player
Getter the PlayerCard
getPlayerName(int) - Method in class ca.uqam.info.model.SkyjoModelImpl
Returns the plain string name of a players, specified by index.
getPlayerScore() - Method in class ca.uqam.info.model.Player
Getter the score of the player
getPlayerScores() - Method in class ca.uqam.info.model.SkyjoModelImpl
Returns array with sum of all revealed cards, each array position represents one player.
getReaveald() - Method in class ca.uqam.info.model.CardImpl
Getter to know if the card is reaveald
getRound() - Method in class ca.uqam.info.model.SkyjoModelImpl
Getter for round counter.
getRowCards(int) - Method in class ca.uqam.info.model.ColumnCard
Getter to get un card from a row
getSize() - Method in class ca.uqam.info.model.Deck
Getter to look up how many card present in the deck
getSizeColumn() - Method in class ca.uqam.info.model.HandPlayerCards
 
getSizeColumnMax() - Method in class ca.uqam.info.model.Player
Getter the size (number of column) of the player Card
getSizeRow() - Method in class ca.uqam.info.model.HandPlayerCards
 
getSizeRowMax() - Method in class ca.uqam.info.model.Player
Getter the size (number of row) of the player Card
getType() - Method in class ca.uqam.info.model.CardImpl
Returns the type of this card.
getValue() - Method in enum class ca.uqam.info.model.CardDistribution
Getter the value of the card
getValue() - Method in class ca.uqam.info.model.CardImpl
Returns the numeric value of this card.

H

HandPlayerCards - Class in ca.uqam.info.model
This class is needed to create the card of the player
HandPlayerCards(int, int) - Constructor for class ca.uqam.info.model.HandPlayerCards
Constructor for the PlayerCard.
hashCode() - Method in class ca.uqam.info.model.CardImpl
Returns a hash code value for this card.

I

initializeModel(ModelPreset, String[]) - Method in class ca.uqam.info.controller.ControllerImpl
Created a new model.
isAllPlayerCardsRevealed(int) - Method in class ca.uqam.info.model.SkyjoModelImpl
 
isBufferCardPresent() - Method in class ca.uqam.info.model.SkyjoModelImpl
Tells whether the model currently has a dedicated buffer card, i.e.
isEmpty() - Method in class ca.uqam.info.model.Deck
Getter to know if the deck is empty
isGameOver() - Method in class ca.uqam.info.model.SkyjoModelImpl
 
isGameOverInitialized() - Method in class ca.uqam.info.model.SkyjoModelImpl
this.players[i].reduceColumn(); Tells if at least one player has all their cards revealed.
isPlayerCardAtPositionRevealed(int, int, int) - Method in class ca.uqam.info.model.SkyjoModelImpl
Getter to look up if a card at a given position is already revealed.
isPlayerCardComplete() - Method in class ca.uqam.info.model.HandPlayerCards
Helper method to evaluate if all the card is reveald
isUndoable() - Method in class ca.uqam.info.controller.KeepColumnCard
Indicates whether this command supports undo operations.
isUndoable() - Method in class ca.uqam.info.controller.RejectCardCommand
Indicates whether this command supports undo operations.
isUndoable() - Method in class ca.uqam.info.controller.RemoveColumnCard
Indicates whether this command supports undo operations.
isUndoable() - Method in class ca.uqam.info.controller.ReplaceCardCommand
Indicates whether this command supports undo operations.
isUndoable() - Method in class ca.uqam.info.controller.RevealCardCommand
Indicates whether this command supports undo operations.
isUndoable() - Method in class ca.uqam.info.controller.RevealFreshCardCommand
Indicates whether this command supports undo operations.
isUndoable() - Method in class ca.uqam.info.controller.SelectDiscardCommand
Indicates whether this command supports undo operations.
isUndoAvailable() - Method in class ca.uqam.info.controller.ControllerImpl
Tells whether the most recent action can be undone.

K

KeepColumnCard - Class in ca.uqam.info.controller
Command implementation for keeping a column with all identical number in Skyjo game.
KeepColumnCard(SkyjoModel, int) - Constructor for class ca.uqam.info.controller.KeepColumnCard
Constructs a new RevealCardCommand with the specified game model.

L

LauncherTP2 - Class in ca.uqam.info.controller
Given by teacher ;)
LauncherTP2() - Constructor for class ca.uqam.info.controller.LauncherTP2
 
loadSkijoCard() - Method in class ca.uqam.info.model.Deck
Helper method to create new set of skyjo card game

M

main(String[]) - Static method in class ca.uqam.info.controller.LauncherTP2
 
ModelAccessException - Exception Class in ca.uqam.info.model
 
ModelAccessException(String) - Constructor for exception class ca.uqam.info.model.ModelAccessException
 

P

peek() - Method in class ca.uqam.info.model.Deck
Helper method to peek a card from the deck
peekDiscardPile() - Method in class ca.uqam.info.model.SkyjoModelImpl
Returns Card of topmost discard pile card (without removing card from discard pile).
Player - Class in ca.uqam.info.model
Represents a player in the Skyjo game.
Player(String, int, int) - Constructor for class ca.uqam.info.model.Player
Constructor for the Player.
pop() - Method in class ca.uqam.info.model.Deck
Helper method to pop a card from the deck
popBufferCard() - Method in class ca.uqam.info.model.SkyjoModelImpl
Retrieves (and implicitly removes) the buffer card.
popDeck() - Method in class ca.uqam.info.model.SkyjoModelImpl
Retrieves the topmost deck card, implicitly removing the card from the deck.
popDiscardPile() - Method in class ca.uqam.info.model.SkyjoModelImpl
Retrieves the topmost discard pile card, implicitly removing the card from the discard pile.
push(Card) - Method in class ca.uqam.info.model.Deck
Helper method to push a card to the deck
pushDiscardPile(Card) - Method in class ca.uqam.info.model.SkyjoModelImpl
Required for undoing operations.

R

reduceColumn(int) - Method in class ca.uqam.info.model.Player
 
reduceRow() - Method in class ca.uqam.info.model.Player
 
reduceSizeColumn() - Method in class ca.uqam.info.model.HandPlayerCards
 
reduceSizeRow() - Method in class ca.uqam.info.model.HandPlayerCards
 
RejectCardCommand - Class in ca.uqam.info.controller
Command implementation for rejecting the currently buffered card in Skyjo game.
RejectCardCommand(SkyjoModel) - Constructor for class ca.uqam.info.controller.RejectCardCommand
Constructs a new RejectCardCommand with the specified game model.
RemoveColumnCard - Class in ca.uqam.info.controller
Command implementation for removing a column from the player card
RemoveColumnCard(SkyjoModel, int) - Constructor for class ca.uqam.info.controller.RemoveColumnCard
Constructs a new RevealCardCommand with the specified game model.
ReplaceCardCommand - Class in ca.uqam.info.controller
Command implementation for replacing a card from the list of all card not remove from the player
ReplaceCardCommand(SkyjoModel, int, int, boolean) - Constructor for class ca.uqam.info.controller.ReplaceCardCommand
Constructs a new RevealCardCommand with the specified game model.
replaceCardHand(Card, int, int) - Method in class ca.uqam.info.model.HandPlayerCards
Helper method to push a card to the deck
replaceCardRow(Card, int) - Method in class ca.uqam.info.model.ColumnCard
Helper method to push a card to the deck
replacePlayerCard(int, int, int, Card) - Method in class ca.uqam.info.model.SkyjoModelImpl
Replaces a player's card by another provided card.
RevealCardCommand - Class in ca.uqam.info.controller
Command implementation for revealing a hidden card in the current player's grid in Skyjo game.
RevealCardCommand(SkyjoModel, int, int) - Constructor for class ca.uqam.info.controller.RevealCardCommand
Constructs a new RevealCardCommand with the specified game model.
revealdRandomPlayerCards() - Method in class ca.uqam.info.model.Player
Helper method to reveald a random card in the player card
revealdRemaidCard() - Method in class ca.uqam.info.model.Player
Helper method to reveald all the remain card in the player card
RevealFreshCardCommand - Class in ca.uqam.info.controller
Command implementation for drawing a fresh card from the deck in Skyjo game.
RevealFreshCardCommand(SkyjoModel) - Constructor for class ca.uqam.info.controller.RevealFreshCardCommand
Constructs a new RevealFreshCardCommand with the specified game model.
revealPlayerCard(int, int, int) - Method in class ca.uqam.info.model.SkyjoModelImpl
Reveals a concealed card in a player's card arrangement, specified by player and x-y position.

S

SelectDiscardCommand - Class in ca.uqam.info.controller
Command implementation for select a card from the discard an put it on the bufferin Skyjo game.
SelectDiscardCommand(SkyjoModel) - Constructor for class ca.uqam.info.controller.SelectDiscardCommand
Constructs a new RevealCardCommand with the specified game model.
setBufferCard(Card) - Method in class ca.uqam.info.model.SkyjoModelImpl
Sets the provided card as buffer card, i.e.
setGameEnder() - Method in class ca.uqam.info.model.SkyjoModelImpl
Marks the current player as game ender, i.e.
setNextCard(Deck.NodeCard) - Method in class ca.uqam.info.model.Deck.NodeCard
Setter to newt Card to the next card
setReaveald(Boolean) - Method in class ca.uqam.info.model.CardImpl
Setter to set if the card is reaveal
shuffle() - Method in class ca.uqam.info.model.Deck
Helper method to shuffle a deck of card
SkyjoModelImpl - Class in ca.uqam.info.model
Main implementation of the SkyjoModel interface.
SkyjoModelImpl(String[], int, int) - Constructor for class ca.uqam.info.model.SkyjoModelImpl
 

T

toString() - Method in class ca.uqam.info.controller.KeepColumnCard
Returns the name of the command
toString() - Method in class ca.uqam.info.controller.RejectCardCommand
Returns the name of the command
toString() - Method in class ca.uqam.info.controller.RemoveColumnCard
Returns the name of the command
toString() - Method in class ca.uqam.info.controller.ReplaceCardCommand
Returns the name of the command
toString() - Method in class ca.uqam.info.controller.RevealCardCommand
Returns the name of the command
toString() - Method in class ca.uqam.info.controller.RevealFreshCardCommand
Returns the name of the command
toString() - Method in class ca.uqam.info.controller.SelectDiscardCommand
Returns the name of the command
toString() - Method in class ca.uqam.info.model.CardImpl
Returns a string representation of the card with exactly 2 characters.

U

undo() - Method in class ca.uqam.info.controller.KeepColumnCard
Undo operation for this command.
undo() - Method in class ca.uqam.info.controller.RejectCardCommand
Undo operation for this command.
undo() - Method in class ca.uqam.info.controller.RemoveColumnCard
Undo operation for this command.
undo() - Method in class ca.uqam.info.controller.ReplaceCardCommand
Undo operation for this command.
undo() - Method in class ca.uqam.info.controller.RevealCardCommand
Undo operation for this command.
undo() - Method in class ca.uqam.info.controller.RevealFreshCardCommand
Undo operation for this command.
undo() - Method in class ca.uqam.info.controller.SelectDiscardCommand
Undo the select discard command by: 1.
undoLastCommand() - Method in class ca.uqam.info.controller.ControllerImpl
reverts the last command.

V

valueOf(String) - Static method in enum class ca.uqam.info.model.CardDistribution
Returns the enum constant of this class with the specified name.
values() - Static method in enum class ca.uqam.info.model.CardDistribution
Returns an array containing the constants of this enum class, in the order they are declared.
A C D E G H I K L M P R S T U V 
All Classes and Interfaces|All Packages|Serialized Form