CSWMapElement Class Reference

List of all members.

Public Member Functions

bool isValid () const

Public Attributes

unsigned long nID
Vector3D vecWorldTPosition
Vector3D vecWorldTVelocity
unsigned long nLevel
long nUserData

Detailed Description

This represents a single element of a CSWMap e.g. an object reported by sonar.


Member Function Documentation

bool CSWMapElement::isValid (  )  const

Returns if the element is valid.

Returns:
Returns true if the element is valid otherwise false.


Member Data Documentation

unsigned long CSWMapElement::nID

The id of the element. It is ensured that this id is system wide unique. Only inserted elements have a valid id.

Vector3D CSWMapElement::vecWorldTPosition

The position regarding to the element in world coordinate system.

Vector3D 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)

unsigned long CSWMapElement::nLevel

The danger level regarding to the element.

long CSWMapElement::nUserData

Data that can be set by the user.


Generated at 2 Jan 2007 for project CodeSubWars. www.codesubwars.org