aigames.soccer.field
Class FieldPoint

java.lang.Object
  extended byaigames.soccer.field.FieldPoint

public class FieldPoint
extends java.lang.Object

Version:
$Id: FieldPoint.java,v 1.6 2004/05/08 21:55:25 mwerla Exp $

Field Summary
static int BLANK_EDGE
          The edge is blank edge
static int FIELD_EDGE
          The edge is field edge
static int NO_EDGE
          There is no edge
 
Constructor Summary
FieldPoint()
          Default constructor which creates point without edges.
FieldPoint(int[] edges)
          Constructor which creates point with given edges.
 
Method Summary
 int getEdgeColor(int edgeNumber)
          Returns edge color for a given edge.
 void setEdgeColor(java.lang.Integer edgeNumber, int color)
          Sets color of na edge.
 void setEdgeColor(int edgeNumber, int color)
          Sets color of na edge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_EDGE

public static final int NO_EDGE
There is no edge

See Also:
Constant Field Values

FIELD_EDGE

public static final int FIELD_EDGE
The edge is field edge

See Also:
Constant Field Values

BLANK_EDGE

public static final int BLANK_EDGE
The edge is blank edge

See Also:
Constant Field Values
Constructor Detail

FieldPoint

public FieldPoint(int[] edges)
Constructor which creates point with given edges.

Parameters:
edges - The edges to set.

FieldPoint

public FieldPoint()
Default constructor which creates point without edges.

Method Detail

setEdgeColor

public void setEdgeColor(java.lang.Integer edgeNumber,
                         int color)
Sets color of na edge.

Parameters:
edgeNumber - Edge to set color.
color - Color to set.

setEdgeColor

public void setEdgeColor(int edgeNumber,
                         int color)
Sets color of na edge.

Parameters:
edgeNumber - Edge to set color.
color - Color to set.

getEdgeColor

public int getEdgeColor(int edgeNumber)
Returns edge color for a given edge.

Parameters:
edgeNumber - Number of edge to check.
Returns:
Edge color.


Copyright © 2001-2004 MoMaT & MWe Team. All Rights Reserved.