All Packages Class Hierarchy This Package Previous Next Index
Class taxman.Move
java.lang.Object
|
+----taxman.Move
- public class Move
- extends Object
Class Move
Defines a move in the game.
Moves have a player who makes the move,
a move (TaxNumber) and taxes collected
-
Move(int, TaxNumber, Vector)
- Creates a move out of a player, a number choice, and a vector of tax numbers.
-
getMove()
- Returns the move as a TaxNumber
-
getPlayer()
- Returns the player Id for the player who made the move
-
getTaxList()
- Returns the vector of taxes collected on this move
-
scoreMade()
- Returns the score made by the mover.
-
taxesCollected()
- Returns the score made by the tax collector.
-
toString()
- Standard toString function.
Move
public Move(int Player,
TaxNumber Move,
Vector Taxes)
- Creates a move out of a player, a number choice, and a vector of tax numbers.
- Parameters:
- Player - The id for the player who made the move
- Move - The actuall move (number choice)
- The - list of available factors the taxman will take
getPlayer
public final int getPlayer()
- Returns the player Id for the player who made the move
- Returns:
- The ID for the player who made the move
scoreMade
public final int scoreMade()
- Returns the score made by the mover.
- Returns:
- The score made by the mover.
taxesCollected
public final int taxesCollected()
- Returns the score made by the tax collector.
- Returns:
- The score made by the tax collector.
getTaxList
public final Vector getTaxList()
- Returns the vector of taxes collected on this move
- Returns:
- A vector with the factors (taxes) collected on this move
getMove
public final TaxNumber getMove()
- Returns the move as a TaxNumber
- Returns:
- A TaxNumber defining the move
toString
public final String toString()
- Standard toString function. It displays the move stats on one line
- Returns:
- A string with the move stats
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index