Binding of RoR::VehicleAI; Vehicle driving AI using waypoints.
More...
#include <VehicleAIClass.h>
|
| void | setActive (bool value) |
| | Activates/Deactivates the AI. More...
|
| |
| bool | isActive () |
| | Returns the status of the AI. More...
|
| |
| void | addWaypoint (string const &in id, vector3 const &in pos) |
| | Adds one waypoint. More...
|
| |
| void | addWaypoints (dictionary &in d) |
| | Adds a dictionary with waypoints. More...
|
| |
| void | addEvent (string const &in id, int ev) |
| | Adds a event. More...
|
| |
| void | setValueAtWaypoint (string const &in id, int value_id, float value) |
| | Sets a value at a waypoint. More...
|
| |
| vector3 | getTranslation (int offset, unsigned int wp) |
| | Gets offset translation based on vehicle rotation and waypoints. More...
|
| |
| void | setActive (bool value) |
| | Activates/Deactivates the AI. More...
|
| |
| bool | isActive () |
| | Returns the status of the AI. More...
|
| |
| void | addWaypoint (string const &in id, vector3 const &in pos) |
| | Adds one waypoint. More...
|
| |
| void | addWaypoints (dictionary &in d) |
| | Adds a dictionary with waypoints. More...
|
| |
| void | addEvent (string const &in id, int ev) |
| | Adds a event. More...
|
| |
| void | setValueAtWaypoint (string const &in id, int value_id, float value) |
| | Sets a value at a waypoint. More...
|
| |
| vector3 | getTranslation (int offset, unsigned int wp) |
| | Gets offset translation based on vehicle rotation and waypoints. More...
|
| |
Binding of RoR::VehicleAI; Vehicle driving AI using waypoints.
Definition at line 43 of file VehicleAIClass.h.
◆ addEvent() [1/2]
| void Script2Game::VehicleAIClass::addEvent |
( |
string const &in |
id, |
|
|
int |
ev |
|
) |
| |
Adds a event.
- Parameters
-
| id | The waypoint ID. |
| ev | The ID of the event. |
- See also
- Ai_events
◆ addEvent() [2/2]
| void Script2Game::VehicleAIClass::addEvent |
( |
string const &in |
id, |
|
|
int |
ev |
|
) |
| |
Adds a event.
- Parameters
-
| id | The waypoint ID. |
| ev | The ID of the event. |
- See also
- Ai_events
◆ addWaypoint() [1/2]
| void Script2Game::VehicleAIClass::addWaypoint |
( |
string const &in |
id, |
|
|
vector3 const &in |
pos |
|
) |
| |
Adds one waypoint.
- Parameters
-
| id | The waypoint ID. |
| point | The coordinates of the waypoint. |
◆ addWaypoint() [2/2]
| void Script2Game::VehicleAIClass::addWaypoint |
( |
string const &in |
id, |
|
|
vector3 const &in |
pos |
|
) |
| |
Adds one waypoint.
- Parameters
-
| id | The waypoint ID. |
| point | The coordinates of the waypoint. |
◆ addWaypoints() [1/2]
| void Script2Game::VehicleAIClass::addWaypoints |
( |
dictionary &in |
d | ) |
|
Adds a dictionary with waypoints.
- Parameters
-
| d | Dictionary with waypoints (string ID -> vector3 pos) |
◆ addWaypoints() [2/2]
| void Script2Game::VehicleAIClass::addWaypoints |
( |
dictionary &in |
d | ) |
|
Adds a dictionary with waypoints.
- Parameters
-
| d | Dictionary with waypoints (string ID -> vector3 pos) |
◆ getTranslation() [1/2]
| vector3 Script2Game::VehicleAIClass::getTranslation |
( |
int |
offset, |
|
|
unsigned int |
wp |
|
) |
| |
Gets offset translation based on vehicle rotation and waypoints.
- Parameters
-
| offset | The offset. |
| wp | The waypoint index. |
◆ getTranslation() [2/2]
| vector3 Script2Game::VehicleAIClass::getTranslation |
( |
int |
offset, |
|
|
unsigned int |
wp |
|
) |
| |
Gets offset translation based on vehicle rotation and waypoints.
- Parameters
-
| offset | The offset. |
| wp | The waypoint index. |
◆ isActive() [1/2]
| bool Script2Game::VehicleAIClass::isActive |
( |
| ) |
|
Returns the status of the AI.
- Returns
- True if the AI is driving
◆ isActive() [2/2]
| bool Script2Game::VehicleAIClass::isActive |
( |
| ) |
|
Returns the status of the AI.
- Returns
- True if the AI is driving
◆ setActive() [1/2]
| void Script2Game::VehicleAIClass::setActive |
( |
bool |
value | ) |
|
Activates/Deactivates the AI.
- Parameters
-
| value | Activate or deactivation the AI |
◆ setActive() [2/2]
| void Script2Game::VehicleAIClass::setActive |
( |
bool |
value | ) |
|
Activates/Deactivates the AI.
- Parameters
-
| value | Activate or deactivation the AI |
◆ setValueAtWaypoint() [1/2]
| void Script2Game::VehicleAIClass::setValueAtWaypoint |
( |
string const &in |
id, |
|
|
int |
value_id, |
|
|
float |
value |
|
) |
| |
Sets a value at a waypoint.
- Parameters
-
| id | The waypoint ID. |
| value_id | The ID of the value that will be set. |
| value | The value itself. |
- See also
- Ai_values
◆ setValueAtWaypoint() [2/2]
| void Script2Game::VehicleAIClass::setValueAtWaypoint |
( |
string const &in |
id, |
|
|
int |
value_id, |
|
|
float |
value |
|
) |
| |
Sets a value at a waypoint.
- Parameters
-
| id | The waypoint ID. |
| value_id | The ID of the value that will be set. |
| value | The value itself. |
- See also
- Ai_values
The documentation for this class was generated from the following file: