![]() |
MAK Legion API Documentation
|
Functions | |
| void | parseArgs (int argc, char **argv) |
| void | setMinMaxBoundary (int minX, int minY, int maxX, int maxY) |
| void | takeShutDownHandler () |
| void | checkConsoleCommands () |
| void | destroyEntity () |
| void | requestOwnership () |
| void | processOwnershipAcquisitionRejected (Legion::TransactionIdentifier transactionId, Legion::Span< Legion::GlobalIdentifier > globalIds, Legion::Span< char > privateData) |
| void | processOwnershipAcquired (Legion::TransactionIdentifier transactionId, Legion::Span< Legion::GlobalIdentifier > globalIds, 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::BoundarySpatialPlanar | theBounds |
| Legion::ViewManager * | theViewManager = nullptr |
| Legion::OwnershipManager * | theOwnershipManager = nullptr |
| Legion::ObjectType | theTransferObjectType (1, 1, 255, 123, 123, 123, 123) |
| LOM::EntityTypeView * | theAvailableObjects = nullptr |
| LOM::WriteEntityRepository | theAcquiredEntity |
| bool | theShowMessage = true |
| Legion::TransactionIdentifier | theOwnershipTransactionId = 0 |
| Legion::GlobalIdentifier | theOwnershipTransactionInstance = 0 |
| MAK::DtCommandParser | theCommandInput |
| bool | theDoRequestAcquisition = false |
| Legion::Vector3d | theDestination (20, 20,-100) |
| void checkConsoleCommands | ( | ) |
References destroyEntity(), theAcquiredEntity, theAvailableObjects, theCommandInput, theDoRequestAcquisition, and theOwnershipTransactionId.
Referenced by main().
| void destroyEntity | ( | ) |
References Legion::SimulationDatabase::destroyInstance(), theAcquiredEntity, and theAvailableObjects.
Referenced by checkConsoleCommands(), and main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
References Legion::OwnershipManager::addAcquiredCallback(), Legion::OwnershipManager::addRequestRejectedCallback(), Legion::SimulationDatabase::beginFrame(), checkConsoleCommands(), Legion::ViewManager::createView(), destroyEntity(), Legion::Vector3d::distanceFrom(), Legion::SimulationDatabase::endFrame(), Legion::Connection::isConnected(), MAX_GRID, Legion::Connection::ownershipManager(), parseArgs(), processOwnershipAcquired(), processOwnershipAcquisitionRejected(), Legion::Remote, requestOwnership(), Legion::Connection::setIntent(), Legion::Connection::setInterest(), setMinMaxBoundary(), Legion::Connection::startProcessingMessages(), takeShutDownHandler(), theAcquiredEntity, theAvailableObjects, theCommandInput, theConfigFile, theDestination, theDoRequestAcquisition, theFrameRate, theTransferObjectType, Legion::SimulationDatabase::viewManager(), and Legion::Connection::waitUntilDoneProcessingMessages().
| void parseArgs | ( | int | argc, |
| char ** | argv | ||
| ) |
| void processOwnershipAcquired | ( | Legion::TransactionIdentifier | transactionId, |
| Legion::Span< Legion::GlobalIdentifier > | globalIds, | ||
| Legion::Span< char > | privateData | ||
| ) |
| void processOwnershipAcquisitionRejected | ( | Legion::TransactionIdentifier | transactionId, |
| Legion::Span< Legion::GlobalIdentifier > | globalIds, | ||
| Legion::Span< char > | privateData | ||
| ) |
References theOwnershipTransactionId, and theOwnershipTransactionInstance.
Referenced by main().
| void requestOwnership | ( | ) |
References Legion::OwnershipManager::requestAcquisition(), theAvailableObjects, theOwnershipTransactionId, and theOwnershipTransactionInstance.
Referenced by main().
| void setMinMaxBoundary | ( | int | minX, |
| int | minY, | ||
| int | maxX, | ||
| int | maxY | ||
| ) |
| void takeShutDownHandler | ( | ) |
References theConfiguration, theConnection, and theSimDb.
Referenced by main().
| int MAX_GRID = 1000 |
| LOM::WriteEntityRepository theAcquiredEntity |
Referenced by checkConsoleCommands(), destroyEntity(), main(), and processOwnershipAcquired().
| LOM::EntityTypeView* theAvailableObjects = nullptr |
Referenced by checkConsoleCommands(), destroyEntity(), main(), and requestOwnership().
| Legion::BoundarySpatialPlanar theBounds |
| MAK::DtCommandParser theCommandInput |
Referenced by checkConsoleCommands(), and main().
| std::string theConfigFile = "legionExamples.lua" |
| Legion::Configuration* theConfiguration = nullptr |
| Legion::Connection* theConnection = nullptr |
| Legion::Vector3d theDestination(20, 20,-100) |
Referenced by main(), and processOwnershipAcquired().
| bool theDoRequestAcquisition = false |
Referenced by checkConsoleCommands(), and main().
| double theFrameRate = 10 |
| Legion::OwnershipManager* theOwnershipManager = nullptr |
| Legion::TransactionIdentifier theOwnershipTransactionId = 0 |
| Legion::GlobalIdentifier theOwnershipTransactionInstance = 0 |
Referenced by doReject(), processOwnershipAcquired(), processOwnershipAcquisitionRejected(), and requestOwnership().
| bool theShowMessage = true |
| Legion::SimulationDatabase* theSimDb = nullptr |
| Legion::ObjectType theTransferObjectType(1, 1, 255, 123, 123, 123, 123) |
| Legion::ViewManager* theViewManager = nullptr |