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

Entity representing an adversary (Vehicle, Motorcycle, Bike, or Pedestrian) with a pre-defined behavior in simulation (not AI) /summary> More...

Inheritance diagram for Entity.Adversary:
Entity.BaseEntity

Public Member Functions

 Adversary (Location spawnPoint, double initialSpeedKMH, AdversaryCategory category, EntityModel model, Path path, Color color, StartPathInfo startRouteInfo=null)
 Constructor for the Adversary class /summary> param name="spawnPoint">The location of the adversary's spawn pointparam name="initialSpeedKMH">The initial speed of the adversary in kilometers per hourparam name="category">The category of the adversary (Vehicle, Motorcycle, Bike, or Pedestrian)param name="model">The model of the adversaryparam name="path">The path of the adversaryparam name="startRouteInfo">Information about how and when the path of the adversary's vehicle is started, if null it starts after 0 sec
 
void setModel (EntityModel model)
 
void setCategory (AdversaryCategory category)
 
object Clone ()
 
- Public Member Functions inherited from Entity.BaseEntity
 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.
 

Static Public Member Functions

static void resetAutoIncrementID ()
 

Properties

AdversaryCategory Category [get, protected set]
 
EntityModel Model [get, protected set]
 
Path Path [get, set]
 
StartPathInfo StartPathInfo [get, set]
 
- Properties inherited from Entity.BaseEntity
string Id [get, set]
 The unique identifier of the BaseEntity object.
 
Location SpawnPoint [get, set]
 
double InitialSpeedKMH [get, set]
 
IBaseEntityView View [get, set]
 

Additional Inherited Members

- Public Attributes inherited from Entity.BaseEntity
ColorSer Color
 

Detailed Description

Entity representing an adversary (Vehicle, Motorcycle, Bike, or Pedestrian) with a pre-defined behavior in simulation (not AI) /summary>

Constructor & Destructor Documentation

◆ Adversary()

Entity.Adversary.Adversary ( Location  spawnPoint,
double  initialSpeedKMH,
AdversaryCategory  category,
EntityModel  model,
Path  path,
Color  color,
StartPathInfo  startRouteInfo = null 
)
inline

Constructor for the Adversary class /summary> param name="spawnPoint">The location of the adversary's spawn pointparam name="initialSpeedKMH">The initial speed of the adversary in kilometers per hourparam name="category">The category of the adversary (Vehicle, Motorcycle, Bike, or Pedestrian)param name="model">The model of the adversaryparam name="path">The path of the adversaryparam name="startRouteInfo">Information about how and when the path of the adversary's vehicle is started, if null it starts after 0 sec

summary> Default constructor for the Adversary class /summary>

Member Function Documentation

◆ resetAutoIncrementID()

static void Entity.Adversary.resetAutoIncrementID ( )
inlinestatic

summary> Sets the model of the adversary /summary> param name="model">The model to set for the adversary

◆ setCategory()

void Entity.Adversary.setCategory ( AdversaryCategory  category)
inline

summary> Creates a clone of the adversary object (deep copy) /summary> returns>A cloned (deepcopy) adversary object

◆ setModel()

void Entity.Adversary.setModel ( EntityModel  model)
inline

summary> Sets the category of the adversary /summary> param name="category">The category to set for the adversary


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