cz.cuni.amis.pogamut.defcon.communication.worldview
Class AbstractMapSource
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STEP
public static final double STEP
- See Also:
- Constant Field Values
AbstractMapSource
public AbstractMapSource()
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.