cz.cuni.amis.pogamut.defcon.communication.worldview
Class AbstractMapSource

Package class diagram package AbstractMapSource
java.lang.Object
  extended by cz.cuni.amis.pogamut.defcon.communication.worldview.AbstractMapSource
All Implemented Interfaces:
IFlagChecker
Direct Known Subclasses:
BitmapMapSource, NativeMapSource

public abstract class AbstractMapSource
extends Object
implements IFlagChecker

Implements common methods to all map sources.

Author:
Radek 'Black_Hand' Pibil

Field Summary
static double STEP
           
 
Constructor Summary
AbstractMapSource()
           
 
Method Summary
 DefConLocation traceFromTo(DefConLocation start, DefConLocation end, BasicFlag flag)
          Returns the closest position to end from start, which has the proper flag.
 DefConLocation traceFromTo(DefConLocation start, DefConLocation end, BasicFlag flag, double distance)
          Returns the a position on line to end from start, which has the proper flag and is as far as possible, while closer than distance from the closest position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.defcon.communication.worldview.modules.grid.flags.IFlagChecker
hasEnemyTerritoryFlag, hasEnemyTerritoryFlag, hasEnemyTerritoryFlag, hasEnemyTerritoryFlag, hasFlag, hasFlag
 

Field Detail

STEP

public static final double STEP
See Also:
Constant Field Values
Constructor Detail

AbstractMapSource

public AbstractMapSource()
Method Detail

traceFromTo

public DefConLocation traceFromTo(DefConLocation start,
                                  DefConLocation end,
                                  BasicFlag flag)
Description copied from interface: IFlagChecker
Returns the closest position to end from start, which has the proper flag.

Specified by:
traceFromTo in interface IFlagChecker
Returns:

traceFromTo

public DefConLocation traceFromTo(DefConLocation start,
                                  DefConLocation end,
                                  BasicFlag flag,
                                  double distance)
Description copied from interface: IFlagChecker
Returns the a position on line to end from start, which has the proper flag and is as far as possible, while closer than distance from the closest position.

Specified by:
traceFromTo in interface IFlagChecker
Returns:


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