cz.cuni.amis.pogamut.defcon.communication.worldview.modules.grid.basic
Class SymmetricGridCell

Package class diagram package SymmetricGridCell
java.lang.Object
  extended by cz.cuni.amis.pogamut.defcon.communication.worldview.modules.grid.basic.SymmetricGridCell
All Implemented Interfaces:
IGridCell

public class SymmetricGridCell
extends Object
implements IGridCell

A single square cell for the experimental grid.

Author:
Radek 'Black_Hand' Pibil

Field Summary
protected  SymmetricGridCellId cellId
           
protected static GameInfo gameInfo
           
 
Constructor Summary
SymmetricGridCell(float x, float y)
           
SymmetricGridCell(SymmetricGridCellId cellId)
           
 
Method Summary
 IGridCellId getCellId()
           
 boolean hasFlag(BasicFlag flag)
           
static boolean hasFlag(float x, float y, BasicFlag flag)
           
static boolean hasFlag(Location location, BasicFlag flag)
           
static void setGameInfo(GameInfo gameInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cellId

protected SymmetricGridCellId cellId

gameInfo

protected static GameInfo gameInfo
Constructor Detail

SymmetricGridCell

public SymmetricGridCell(SymmetricGridCellId cellId)

SymmetricGridCell

public SymmetricGridCell(float x,
                         float y)
Method Detail

setGameInfo

public static void setGameInfo(GameInfo gameInfo)

hasFlag

public boolean hasFlag(BasicFlag flag)
Specified by:
hasFlag in interface IGridCell

hasFlag

public static boolean hasFlag(Location location,
                              BasicFlag flag)

hasFlag

public static boolean hasFlag(float x,
                              float y,
                              BasicFlag flag)

getCellId

public IGridCellId getCellId()
Specified by:
getCellId in interface IGridCell


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.