#include <CSWMap.h>
Public Member Functions | |
bool | isValid () const |
Public Attributes | |
unsigned long | nID |
Vector3D | vecWorldTPosition |
Vector3D | vecWorldTVelocity |
unsigned long | nLevel |
long | nUserData |
This represents a single element of a CSWMap e.g. an object reported by sonar.
bool CodeSubWars::CSWMapElement::isValid | ( | ) | const |
Returns if the element is valid.
unsigned long CodeSubWars::CSWMapElement::nID |
The id of the element. It is ensured that this id is system wide unique. Only inserted elements have a valid id.
unsigned long CodeSubWars::CSWMapElement::nLevel |
The danger level regarding to the element.
long CodeSubWars::CSWMapElement::nUserData |
Data that can be set by the user.
Vector3D CodeSubWars::CSWMapElement::vecWorldTPosition |
The position regarding to the element in world coordinate system.
Vector3D CodeSubWars::CSWMapElement::vecWorldTVelocity |
The approximate velocity regarding to the element in m/s in world coordinate system. This is calculated from the detection difference of the current and the last position and time.
vApprox = (vecCurrent - vecLast)/(timeCurrent - timeLast)