Method AddAgent
AddAgent(Unit)
convenience function to convert the data structure Unit to the main AddAgent function and add the agent
Declaration
RideID AddAgent(Unit unit)
Parameters
Type | Name | Description |
---|---|---|
Unit | unit | the unit to be added |
Returns
Type | Description |
---|---|
RideID | the agent which was created |
AddAgent(RideID, Unit)
convenience function to convert the data structure Unit to the main AddAgent function and add the agent
Declaration
RideID AddAgent(RideID scenarioId, Unit unit)
Parameters
Type | Name | Description |
---|---|---|
RideID | scenarioId | |
Unit | unit | the unit to be added |
Returns
Type | Description |
---|---|
RideID | the agent which was created |
AddAgent(RideID)
convenience function to convert the data structure Unit to the main AddAgent function and add the agent
Declaration
void AddAgent(RideID agentId)
Parameters
Type | Name | Description |
---|---|---|
RideID | agentId | the unit to be added |
AddAgent(RideID, RideID)
convenience function to convert the data structure Unit to the main AddAgent function and add the agent
Declaration
void AddAgent(RideID scenarioId, RideID agentId)
Parameters
Type | Name | Description |
---|---|---|
RideID | scenarioId | |
RideID | agentId | the unit to be added |