Logo Search packages:      
Sourcecode: filler version File versions  Download package

friendless::games::filler::player::HumanFillerPlayer Class Reference

Inheritance diagram for friendless::games::filler::player::HumanFillerPlayer:

friendless::games::filler::AbstractFillerPlayer friendless::games::filler::FillerPlayer

List of all members.

Detailed Description

A player controlled from the GUI.

John Farrell

Definition at line 24 of file HumanFillerPlayer.java.

Public Member Functions

boolean colourChosen (int c)
String getFullName ()
String getIcon ()
String getName ()
boolean requiresButtons ()
void setOrigin (int origin, int otherOrigin)
final int takeTurn (FillerModel model, int otherPlayerColour)
int turn ()

Protected Member Functions

int chooseRandom (BitSet choices)
final int[] copy (int[] src)

Static Protected Member Functions

static BitSet allColours ()
static final int diagDistance (int p1, int p2)
static final int getX (int i)
static final int getY (int i)
static final int intRoot (int x)
static final int makeIndex (int x, int y)
static final int sideDistance (int p1, int p2)

Protected Attributes

int chosenColour
int[] origins
int otherPlayerColour
int[] reverseOrigins

Static Protected Attributes

static Random rng = new Random()

Static Package Attributes

static final int[] ROOTS = { 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 }

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index