Class games.Battle.client.ClientApplet.ClientCell
All Packages Class Hierarchy This Package Previous Next Index
Class games.Battle.client.ClientApplet.ClientCell
java.lang.Object
|
+----games.Battle.shared.sys.Cell
|
+----games.Battle.client.ClientApplet.ClientCell
- public class ClientCell
- extends Cell
A cell which is placed inside a ClientBoard. It is responsible for
maintaining client-speficic data for the game cell.
-
ClientCell(int, int)
- Build a client cell, which is located at the given (r,c) pair
-
pipeRegion(int, int)
- Return which pipe region the (x,y) tuple is located in.
ClientCell
public ClientCell(int r,
int c)
- Build a client cell, which is located at the given (r,c) pair
- Parameters:
- r - the cell's row
- c - the cell's column
pipeRegion
public int pipeRegion(int x,
int y)
- Return which pipe region the (x,y) tuple is located in. Returns
the one of Symbols.NORTH, Symbols.EAST, Symbols.WEST,
Symbols.SOUTH, or -1 if the pair does not fall inside the
region of any pipes.
- Parameters:
- x - the x-coordinate
- y - the y-coordinate
All Packages Class Hierarchy This Package Previous Next Index