MainController manages the user interface and the interactions with the scenario editor.
More...
|
static void | MoveToolTip (Vector2 pos, Vector2 direction, String text) |
|
static void | HideToolTip () |
|
|
static bool[] | helpComplete = new bool[] { false, false } |
|
static bool | freeze = false |
|
|
ScenarioInfo | Info [get] |
| The ScenarioInfo for the current scenario being edited.
|
|
MainController manages the user interface and the interactions with the scenario editor.
◆ AddAdversary()
void MainController.AddAdversary |
( |
Adversary |
adversary | ) |
|
|
inline |
Adds an adversary to the scenario.
- Parameters
-
entity | The Adversary object to be added. |
◆ CreateAdversary()
Creates a new adversary object without adding it to the scenario model. It will be added to the model once it is placed by the user.
- Parameters
-
category | The AdversaryCategory for the new adversary. |
◆ MoveActionButtons()
void MainController.MoveActionButtons |
( |
Vector2 |
pos | ) |
|
|
inline |
Moves the action buttons to the specified position.
- Parameters
-
pos | A Vector2 representing the new position for the action buttons. |
◆ RemoveAdversary()
void MainController.RemoveAdversary |
( |
Adversary |
adversary | ) |
|
|
inline |
Removes an adversary from the scenario.
- Parameters
-
adversary | The Adversary object to be removed. |
◆ SetEgo()
void MainController.SetEgo |
( |
Ego |
ego | ) |
|
|
inline |
Sets the ego vehicle in the scenario.
- Parameters
-
ego | The Ego object representing the ego vehicle. |
◆ SetSelectedEntity()
Sets the selected entity in the scenario editor.
- Parameters
-
controller | The entity to set as the selected entity. Pass null to deselect the current entity.</param |
The documentation for this class was generated from the following file:
- C:/Users/stefa/source/repos/AI_Testing_Simulator/Unity/Assets/Scripts/MainController.cs