Uses of Class
it.polimi.ingsw.Server.Model.ObjectCard
Packages that use ObjectCard
-
Uses of ObjectCard in it.polimi.ingsw.Server.Controller
Fields in it.polimi.ingsw.Server.Controller with type parameters of type ObjectCard -
Uses of ObjectCard in it.polimi.ingsw.Server.Model
Fields in it.polimi.ingsw.Server.Model with type parameters of type ObjectCardModifier 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 gameMethods in it.polimi.ingsw.Server.Model that return ObjectCardModifier 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))Methods in it.polimi.ingsw.Server.Model that return types with arguments of type ObjectCardModifier 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)Methods in it.polimi.ingsw.Server.Model with parameters of type ObjectCardModifier 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)Method parameters in it.polimi.ingsw.Server.Model with type arguments of type ObjectCardModifier 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".Constructor parameters in it.polimi.ingsw.Server.Model with type arguments of type ObjectCardModifierConstructorDescriptionBoard
(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