public abstract class MapObject extends Object
Constructor and Description |
---|
MapObject(int type)
Constructs a MapObject with the given type.
|
Modifier and Type | Method and Description |
---|---|
int |
getType()
The type of this MapObject.
|
boolean |
isAdded()
Indicate that the object is added to the map.
|
abstract void |
remove()
Remove the object from a map.
|
public MapObject(int type)
type
- a constant of map object type
HyperTrackMap.LOCATION_MAP_OBJECT_TYPE
,
HyperTrackMap.TRIP_MAP_OBJECT_TYPE
public int getType()
HyperTrackMap.LOCATION_MAP_OBJECT_TYPE
,
HyperTrackMap.TRIP_MAP_OBJECT_TYPE
public boolean isAdded()
public abstract void remove()