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.

Constructor Index

 o ClientCell(int, int)
Build a client cell, which is located at the given (r,c) pair

Method Index

 o pipeRegion(int, int)
Return which pipe region the (x,y) tuple is located in.

Constructors

 o 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

Methods

 o 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