Uses of Class
it.polimi.ingsw.Server.Model.ObjectCard
-
Uses of ObjectCard in it.polimi.ingsw.Server.Controller
-
Uses of ObjectCard in it.polimi.ingsw.Server.Model
Modifier and TypeFieldDescriptionprivate Optional<ObjectCard>
BoardSpace.card
(eventual) Object Card in the spaceprivate Map<ObjectCard,
BoardSpace> Board.lastTaken
List of the most recent Object Cards takenprivate List<ObjectCard>
Board.objectCards
Object Cards extracted in the related gameprivate List<ObjectCard>
Game.objectCards
Object Cards extracted in the related gameModifier and TypeMethodDescriptionBoardSpace.getPlainCard()
Shelf.getPlainCard
(int x, int y) gets Object Card in position (x, y) if valid (else null)Board.getPlainCardFromSpace
(int x, int y) Returns Object Card as an instance (not as Optional.of(card))Modifier and TypeMethodDescriptionBoard.boardCards()
Returns a list of usable and effectively present cards on the board, based on a functional approach using Optionals.BoardSpace.getCard()
Shelf.getCard
(int x, int y) gets Object Card in position (x, y) if valid (else empty)Board.getCardsFromCoordinate
(List<Integer> x, List<Integer> y) Returns a list of cards contained in a group of coordinatesBoard.getObjectCards()
Shelf.shelfCards()
Returns a list of effectively present cards on the board, based on a functional approach using Optionals.Board.takeFromBoardFromCoordinate
(List<Integer> x, List<Integer> y) Removes from board a group of cards based on their coordinates (only valid moves are accepted)Modifier and TypeMethodDescriptionint
Shelf.getCoordinate
(ObjectCard oc, boolean X) Looks for coordinates of a given card (x, y)void
Shelf.placeCard
(ObjectCard oc, int y) Inserts a card into the shelf at the selected column (y)Modifier and TypeMethodDescriptionvoid
BoardSpace.setCard
(Optional<ObjectCard> card) Sets the card in the spacevoid
Board.takeFromBoard
(List<ObjectCard> orderedCards) Removes from board a list of ordered cards (only valid moves are accepted)boolean
Board.valid
(List<ObjectCard> list) Checks if, given a list of sequentially ordered cards, every card has a "free side".ModifierConstructorDescriptionBoard
(int playerCount, List<ObjectCard> objectCards) Manages board creation and initialization, based on pre-built files indicating usable spaces and restrictions related to the number of players.private
Board
(BoardSpace[][] spaces, List<ObjectCard> objectCards, Map<ObjectCard, BoardSpace> lastTaken) Related to Game's refresh strategyprivate
Board
(BoardSpace[][] spaces, List<ObjectCard> objectCards, Map<ObjectCard, BoardSpace> lastTaken) Related to Game's refresh strategy(package private)
ObjectCard
(List<ObjectCard> list) ObjectCard's constructor