![]() |
MAK Legion API Documentation
|
Functions | |
| void | parseArgs (int argc, char **argv) |
| void | setMinMaxBoundary (int minX, int minY, int maxX, int maxY) |
| void | giveShutDownHandler () |
| void | processOwnershipDivestitureRequest (Legion::TransactionIdentifier transactionId, Legion::Span< Legion::InstanceHandle > instanceIds, Legion::Span< char > privateData) |
| int | main (int argc, char *argv[]) |
Variables | |
| double | theFrameRate = 10 |
| int | MAX_GRID = 1000 |
| std::string | theConfigFile = "legionExamples.lua" |
| Legion::Configuration * | theConfiguration = nullptr |
| Legion::SimulationDatabase * | theSimDb = nullptr |
| Legion::Connection * | theConnection = nullptr |
| Legion::OwnershipManager * | theOwnershipManager = nullptr |
| Legion::BoundarySpatialPlanar | theBounds |
| LOM::WriteEntityRepository | theEntityToDivest |
| Legion::ObjectType | theTransferObjectType (1, 1, 255, 123, 123, 123, 123) |
| double | theTimeToCreate = 0.0 |
| double | theCreateDelay = 1.0 |
| void giveShutDownHandler | ( | ) |
References theConfiguration, theConnection, and theSimDb.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
References Legion::OwnershipManager::addDivestitureRequestCallback(), Legion::SimulationDatabase::beginFrame(), Legion::Connection::clientId(), Legion::SimulationDatabase::createInstance(), Legion::SimulationDatabase::endFrame(), giveShutDownHandler(), Legion::Connection::isConnected(), MAX_GRID, Legion::Connection::ownershipManager(), parseArgs(), processOwnershipDivestitureRequest(), Legion::Connection::setIntent(), Legion::Connection::setInterest(), setMinMaxBoundary(), Legion::Connection::startProcessingMessages(), theConfigFile, theEntityToDivest, theFrameRate, theTimeToCreate, theTransferObjectType, and Legion::Connection::waitUntilDoneProcessingMessages().
| void parseArgs | ( | int | argc, |
| char ** | argv | ||
| ) |
| void processOwnershipDivestitureRequest | ( | Legion::TransactionIdentifier | transactionId, |
| Legion::Span< Legion::InstanceHandle > | instanceIds, | ||
| Legion::Span< char > | privateData | ||
| ) |
References Legion::OwnershipManager::divest(), Legion::OwnershipManager::rejectDivestitureRequest(), theCreateDelay, theEntityToDivest, and theTimeToCreate.
Referenced by main().
| void setMinMaxBoundary | ( | int | minX, |
| int | minY, | ||
| int | maxX, | ||
| int | maxY | ||
| ) |
| int MAX_GRID = 1000 |
| Legion::BoundarySpatialPlanar theBounds |
| std::string theConfigFile = "legionExamples.lua" |
| Legion::Configuration* theConfiguration = nullptr |
| Legion::Connection* theConnection = nullptr |
| double theCreateDelay = 1.0 |
Referenced by processOwnershipDivestitureRequest().
| LOM::WriteEntityRepository theEntityToDivest |
Referenced by main(), and processOwnershipDivestitureRequest().
| double theFrameRate = 10 |
| Legion::OwnershipManager* theOwnershipManager = nullptr |
| Legion::SimulationDatabase* theSimDb = nullptr |
| double theTimeToCreate = 0.0 |
Referenced by main(), and processOwnershipDivestitureRequest().
| Legion::ObjectType theTransferObjectType(1, 1, 255, 123, 123, 123, 123) |
Referenced by createEntity(), and main().