![]() |
MAK Legion API Documentation
|
Macros | |
| #define | CLEAR_LINE "\r \r" |
Variables | |
| 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 (3, 1, 225, 3, 0, 1, 0) |
| LOM::EntityTypeView * | theRemoteEntities = nullptr |
| LOM::WriteEntityRepository | theOwnEntity |
| Legion::TransactionIdentifier | theOwnershipTransactionId = 0 |
| Legion::GlobalIdentifier | theOwnershipTransactionInstance = 0 |
| MAK::DtCommandParser | theCommandInput |
| double | theFrameRate = 10 |
| int | MAX_GRID = 1000 |
| bool | theDoCreateEntity = false |
| bool | theDoDestroy = false |
| bool | theDoRequestAcquisition = false |
| bool | theDoDivestEntity = false |
| bool | theDoRejectRequest = false |
| bool | theAutoDivest = false |
| int | theAvailableCount = 0 |
| float | theReferenceLatitude = 0.0 |
| float | theReferenceLongitude = 0.0 |
| #define CLEAR_LINE "\r \r" |
Referenced by createEntity(), doDivest(), doReject(), and main().
| void checkConsoleCommands | ( | ) |
|
inline |
|
inline |
| void createEntity | ( | UInt32 | entityNumber | ) |
References CLEAR_LINE, Legion::Connection::clientId(), Clutter::coerce(), Legion::SimulationDatabase::createInstance(), nextRand(), theOwnEntity, theReferenceLatitude, theReferenceLongitude, and theTransferObjectType.
Referenced by main().
| void destroyEntity | ( | ) |
| void doDivest | ( | Legion::TransactionIdentifier | transactionId | ) |
References CLEAR_LINE, Legion::OwnershipManager::divest(), theOwnEntity, and thePrivateData().
Referenced by main().
| void doReject | ( | Legion::TransactionIdentifier | transactionId | ) |
References CLEAR_LINE, Legion::OwnershipManager::rejectDivestitureRequest(), and theOwnershipTransactionInstance.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
References Legion::OwnershipManager::addAcquiredCallback(), Legion::OwnershipManager::addDivestitureRequestCallback(), Legion::OwnershipManager::addRequestRejectedCallback(), Legion::SimulationDatabase::beginFrame(), checkConsoleCommands(), CLEAR_LINE, createEntity(), Legion::ViewManager::createView(), destroyEntity(), doDivest(), doReject(), Legion::SimulationDatabase::endFrame(), Legion::Connection::isConnected(), Legion::Configuration::loadParameters(), MAX_GRID, Legion::Connection::ownershipManager(), Legion::Configuration::parameter(), parseArgs(), Legion::Configuration::processArguments(), processOwnershipAcquired(), processOwnershipAcquisitionRejected(), processOwnershipDivestitureRequest(), Legion::Remote, requestOwnership(), Legion::Connection::setIntent(), Legion::Connection::setInterest(), setMinMaxBoundary(), Legion::Configuration::setParameter(), Legion::Connection::startProcessingMessages(), takeShutDownHandler(), theAvailableCount, theCommandInput, theConfigFile, theDoCreateEntity, theDoDestroy, theDoDivestEntity, theDoRejectRequest, theDoRequestAcquisition, theFrameRate, theOwnEntity, theOwnershipTransactionId, theReferenceLatitude, theReferenceLongitude, theRemoteEntities, theTransferObjectType, Legion::SimulationDatabase::viewManager(), Legion::Connection::waitUntilDoneProcessingMessages(), Legion::Vector3d::x, Legion::Vector3d::y, and Legion::Vector3d::z.
| double nextRand | ( | int | maxRange | ) |
Referenced by createEntity().
| void parseArgs | ( | int | argc, |
| char ** | argv | ||
| ) |
Forward declare functions.
| 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 | ||
| ) |
| void processOwnershipDivestitureRequest | ( | Legion::TransactionIdentifier | transactionId, |
| Legion::Span< Legion::GlobalIdentifier > | globalIds, | ||
| Legion::Span< char > | privateData | ||
| ) |
| void requestOwnership | ( | ) |
| void setMinMaxBoundary | ( | int | minX, |
| int | minY, | ||
| int | maxX, | ||
| int | maxY | ||
| ) |
| void takeShutDownHandler | ( | ) |
| const char * testPrivateData | ( | Legion::Span< char > | privateData | ) |
| std::string thePrivateData | ( | "Test Private Data" | ) |
Referenced by doDivest(), and testPrivateData().
| int MAX_GRID = 1000 |
| bool theAutoDivest = false |
| int theAvailableCount = 0 |
Referenced by main().
| Legion::BoundarySpatialPlanar theBounds |
| MAK::DtCommandParser theCommandInput |
| std::string theConfigFile = "legionExamples.lua" |
| Legion::Configuration* theConfiguration = nullptr |
| Legion::Connection* theConnection = nullptr |
| bool theDoCreateEntity = false |
Referenced by main().
| bool theDoDestroy = false |
Referenced by main().
| bool theDoDivestEntity = false |
Referenced by main().
| bool theDoRejectRequest = false |
Referenced by main().
| bool theDoRequestAcquisition = false |
| double theFrameRate = 10 |
| LOM::WriteEntityRepository theOwnEntity |
Referenced by createEntity(), doDivest(), and main().
| Legion::OwnershipManager* theOwnershipManager = nullptr |
| Legion::TransactionIdentifier theOwnershipTransactionId = 0 |
| Legion::GlobalIdentifier theOwnershipTransactionInstance = 0 |
| float theReferenceLatitude = 0.0 |
Referenced by createEntity(), and main().
| float theReferenceLongitude = 0.0 |
Referenced by createEntity(), and main().
| LOM::EntityTypeView* theRemoteEntities = nullptr |
Referenced by main().
| Legion::SimulationDatabase* theSimDb = nullptr |
| Legion::ObjectType theTransferObjectType(3, 1, 225, 3, 0, 1, 0) |
| Legion::ViewManager* theViewManager = nullptr |