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


Constructor Index

 o Move(int, TaxNumber, Vector)
Creates a move out of a player, a number choice, and a vector of tax numbers.

Method Index

 o getMove()
Returns the move as a TaxNumber
 o getPlayer()
Returns the player Id for the player who made the move
 o getTaxList()
Returns the vector of taxes collected on this move
 o scoreMade()
Returns the score made by the mover.
 o taxesCollected()
Returns the score made by the tax collector.
 o toString()
Standard toString function.

Constructors

 o 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

Methods

 o 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
 o scoreMade
 public final int scoreMade()
Returns the score made by the mover.

Returns:
The score made by the mover.
 o taxesCollected
 public final int taxesCollected()
Returns the score made by the tax collector.

Returns:
The score made by the tax collector.
 o 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
 o getMove
 public final TaxNumber getMove()
Returns the move as a TaxNumber

Returns:
A TaxNumber defining the move
 o 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