Uses of Class
jrummikub.model.Stone

Packages that use Stone
jrummikub.ai   
jrummikub.control.turn   
jrummikub.model   
jrummikub.view   
jrummikub.view.impl   
 

Uses of Stone in jrummikub.ai
 

Fields in jrummikub.ai with type parameters of type Stone
private  java.util.List<Stone> TurnLogic.inputStones
           
 

Constructors in jrummikub.ai with parameters of type Stone
TurnLogic.StoneState(int id, Stone stone, boolean table)
          Creates a new
 

Constructor parameters in jrummikub.ai with type arguments of type Stone
TurnLogic(GameSettings settings, java.util.Collection<Stone> tableStones, java.util.Collection<Stone> handStones)
          Creates new turn logic
TurnLogic(GameSettings settings, java.util.Collection<Stone> tableStones, java.util.Collection<Stone> handStones)
          Creates new turn logic
 

Uses of Stone in jrummikub.control.turn
 

Fields in jrummikub.control.turn with type parameters of type Stone
private  java.util.List<Stone> HumanTurnControl.selectedStones
           
 

Methods in jrummikub.control.turn that return types with arguments of type Stone
(package private) static java.util.Set<Stone> AbstractTurnControl.tableDifference(ITable oldTable, ITable newTable)
           
 

Methods in jrummikub.control.turn with parameters of type Stone
private  void HumanTurnControl.collectionSetClick(Stone stone, boolean collect)
           
private  void HumanTurnControl.collectionStoneClick(Stone stone, boolean collect)
           
 int HumanTurnControl.RunComparator.compare(Stone s1, Stone s2)
           
 int HumanTurnControl.GroupComparator.compare(Stone s1, Stone s2)
           
private static int HumanTurnControl.compareColors(Stone s1, Stone s2)
           
private static int HumanTurnControl.compareJokers(Stone s1, Stone s2)
           
private static int HumanTurnControl.compareValues(Stone s1, Stone s2)
           
private  void HumanTurnControl.handRangeClick(Stone stone, boolean collect)
           
private  void HumanTurnControl.stoneClick(Stone stone, boolean collect)
           
private  void HumanTurnControl.tableRangeClick(Stone stone, boolean collect)
           
private  void HumanTurnControl.tableSetClick(Stone stone, boolean collect)
           
 

Method parameters in jrummikub.control.turn with type arguments of type Stone
private  void AIControl.addHandStones(java.util.List<Stone> handStones)
           
private  void AIControl.addTableStones(java.util.List<Stone> tableStones)
           
 int HumanTurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1, Pair<Stone,Position> pair2)
           
 int HumanTurnControl.HandStonePositionComparator.compare(Pair<Stone,Position> pair1, Pair<Stone,Position> pair2)
           
private  void HumanTurnControl.sortStones(java.util.Comparator<Stone> comparator)
           
 

Uses of Stone in jrummikub.model
 

Fields in jrummikub.model with type parameters of type Stone
(package private)  java.util.ArrayList<Stone> StoneHeap.heap
           
private  java.util.ArrayList<Stone> StoneSet.stones
           
 

Methods in jrummikub.model that return Stone
 Stone StoneHeap.drawStone()
          Removes random Stone from the heap and returns it
 Stone StoneSet.get(int i)
          Returns the i-th stone of the set (starting with 0)
 

Methods in jrummikub.model that return types with arguments of type Stone
 java.util.List<Stone> StoneHeap.drawStones(int number)
          Removes several Stones from the heap and returns them
 java.util.Iterator<Stone> StoneSet.iterator()
           
 

Methods in jrummikub.model with parameters of type Stone
private  Table.StoneInfo Table.findStoneInfo(Stone stone)
          Finds Table.StoneInfo
 StoneSet Table.findStoneSet(Stone stone)
           
 StoneSet ITable.findStoneSet(Stone stone)
          Finds the StoneSet containing the given Stone
protected  Pair<Position,StoneTray.Direction> Hand.fixInvalidDrop(Stone stone, Position pos, StoneTray.Direction dir)
           
 void Table.pickUpStone(Stone stone)
          Removes Stone from the Table
 void ITable.pickUpStone(Stone stone)
          Removes Stone from the Table
 

Method parameters in jrummikub.model with type arguments of type Stone
private static Pair<java.util.TreeMap<Pair<java.lang.Integer,StoneColor>,java.lang.Integer>,java.lang.Integer> Hand.countStones(java.util.List<Stone> stones)
          Counts the numbers of stones
 void StoneHeap.putBack(java.util.Collection<Stone> stones)
          Put stones back on the heap
 

Constructors in jrummikub.model with parameters of type Stone
StoneSet(Stone stone)
          Create a new single stone stone set
 

Constructor parameters in jrummikub.model with type arguments of type Stone
StoneSet(java.util.List<Stone> stones)
          Create a stone set from a list of stones
 

Uses of Stone in jrummikub.view
 

Methods in jrummikub.view that return types with arguments of type Stone
 IEvent2<Stone,java.lang.Boolean> IStonePanel.getRangeClickEvent()
          the range click event is emitted when the player clicks on the table/hand/ etc. and wants to select a range instead of a single stone
 IEvent2<Stone,java.lang.Boolean> IStonePanel.getSetClickEvent()
          the set click event is emitted when the player clicks on the table/hand/ etc. and wants to select a whole set instead of a single stone
 IEvent2<Stone,java.lang.Boolean> IStonePanel.getStoneClickEvent()
          the click event is emitted when the player clicks on the table/hand/etc.
 

Method parameters in jrummikub.view with type arguments of type Stone
 void IView.setSelectedStones(java.util.Collection<Stone> stones)
          Sets the stones that are to be painted selected
 void IHandPanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
          Set the player's stones to display on the board
 

Uses of Stone in jrummikub.view.impl
 

Fields in jrummikub.view.impl declared as Stone
private  Stone AbstractStonePanel.hoveredStone
           
 

Fields in jrummikub.view.impl with type parameters of type Stone
private  Event2<Stone,java.lang.Boolean> AbstractStonePanel.rangeClickEvent
           
private  java.util.Collection<Stone> StoneCollectionPanel.selectedStones
           
private  java.util.Collection<Stone> HandPanel.selectedStones
           
private  java.util.Collection<Stone> TablePanel.selectedStones
           
private  Event2<Stone,java.lang.Boolean> AbstractStonePanel.setClickEvent
           
private  Event2<Stone,java.lang.Boolean> AbstractStonePanel.stoneClickEvent
           
private  java.lang.Iterable<Pair<Stone,Position>> AbstractStonePanel.stones
           
 

Methods in jrummikub.view.impl that return Stone
protected  Stone AbstractStonePanel.getHoveredStone()
          Returns the stone the mouse pointer is hovering over
private  Stone AbstractStonePanel.getStoneAt(Position pos)
          Gets the stone at the specified position
 

Methods in jrummikub.view.impl that return types with arguments of type Stone
private  java.util.List<Pair<Stone,Position>> View.createDecorationStones()
           
 Event2<Stone,java.lang.Boolean> AbstractStonePanel.getRangeClickEvent()
           
 Event2<Stone,java.lang.Boolean> AbstractStonePanel.getSetClickEvent()
           
 Event2<Stone,java.lang.Boolean> AbstractStonePanel.getStoneClickEvent()
           
protected  java.lang.Iterable<Pair<Stone,Position>> AbstractStonePanel.getStones()
          Returns the list of stones and positions currently set
 

Methods in jrummikub.view.impl with parameters of type Stone
(package private)  void StonePainter.paintStone(java.awt.Graphics2D g, Stone stone, Position p, StonePainter.StoneState state, boolean hovered)
          Paints a stone
private  void AbstractStonePanel.setHoveredStone(Stone stone)
          Sets the stone over which the cursor hovers
 

Method parameters in jrummikub.view.impl with type arguments of type Stone
(package private)  void StoneCollectionPanel.setSelectedStones(java.util.Collection<Stone> selectedStones)
          Sets the stones to be shown in the collection
(package private)  void HandPanel.setSelectedStones(java.util.Collection<Stone> stones)
          Sets the stones that are to be painted selected
(package private)  void TablePanel.setSelectedStones(java.util.Collection<Stone> stones)
          Sets the currently selected stones
 void View.setSelectedStones(java.util.Collection<Stone> stones)
           
 void HandPanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
           
protected  void AbstractStonePanel.setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
          Sets the list of stones that can be clicked on