AI Testing Simulator
Loading...
Searching...
No Matches
Entity.BaseEntity Class Reference

Creates BaseEntity Object which contains Coord3D SpawnPoint for entities (Veh, Ped) More...

Inheritance diagram for Entity.BaseEntity:
Entity.Adversary Entity.Ego

Public Member Functions

 BaseEntity (string id, Location spawnPoint, double initialSpeedKMH, Color color)
 Creates a new BaseEntity object with an Id, SpawnPoint, and initial speed.
 
 BaseEntity ()
 Creates a new BaseEntity object with empty values.
 
void setPosition (float x, float y)
 Sets the position of the BaseEntity object.
 
void setRotation (float angle)
 Sets the rotation angle of the BaseEntity object.
 
void setView (IBaseEntityView view)
 Sets the view of the BaseEntity object.
 
void setColor (Color c)
 Sets the color of the BaseEntity object.
 
Location getCarlaLocation ()
 Returns the location of the BaseEntity object in CARLA coordinates.
 

Public Attributes

ColorSer Color
 

Properties

string Id [get, set]
 The unique identifier of the BaseEntity object.
 
Location SpawnPoint [get, set]
 
double InitialSpeedKMH [get, set]
 
IBaseEntityView View [get, set]
 

Detailed Description

Creates BaseEntity Object which contains Coord3D SpawnPoint for entities (Veh, Ped)

Constructor & Destructor Documentation

◆ BaseEntity()

Entity.BaseEntity.BaseEntity ( string  id,
Location  spawnPoint,
double  initialSpeedKMH,
Color  color 
)
inline

Creates a new BaseEntity object with an Id, SpawnPoint, and initial speed.

Parameters
idThe unique identifier of the BaseEntity object.
spawnPointThe Coord3D spawn point of the BaseEntity object.
initialSpeedKMHThe initial speed of the BaseEntity object in kilometers per hour.

Member Function Documentation

◆ getCarlaLocation()

Location Entity.BaseEntity.getCarlaLocation ( )
inline

Returns the location of the BaseEntity object in CARLA coordinates.

Returns
The location of the BaseEntity object in CARLA coordinates.

◆ setColor()

void Entity.BaseEntity.setColor ( Color  c)
inline

Sets the color of the BaseEntity object.

Parameters
cThe new color of the BaseEntity object.

◆ setPosition()

void Entity.BaseEntity.setPosition ( float  x,
float  y 
)
inline

Sets the position of the BaseEntity object.

Parameters
xThe x coordinate of the new position.
yThe y coordinate of the new position.

◆ setRotation()

void Entity.BaseEntity.setRotation ( float  angle)
inline

Sets the rotation angle of the BaseEntity object.

Parameters
angleThe new rotation angle in degrees.


◆ setView()

void Entity.BaseEntity.setView ( IBaseEntityView  view)
inline

Sets the view of the BaseEntity object.

Parameters
viewThe new view of the BaseEntity object.

The documentation for this class was generated from the following file: