//===========================================================================// // File: app.tst // // Project: MUNGA Brick: Application // // Contents: Interface specification for Application // //---------------------------------------------------------------------------// // Date Who Modification // // -------- --- ---------------------------------------------------------- // // 12/12/94 ECH Added event utilities. // //---------------------------------------------------------------------------// // Copyright (C) 1994, Virtual World Entertainment, Inc. // // All Rights reserved worldwide // // This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL // //===========================================================================// #include "app.thp" #include "entity.thp" #include "controls.thp" TestApplication::TestApplication(ResourceFile *resource_file): Application(resource_file, (ApplicationID)0) { } TestApplication::~TestApplication() { } void TestApplication::Initialize() { Check(this); // //-------------------------------------------------------------------------- // Create the network manager //-------------------------------------------------------------------------- // application = this; networkManager = MakeNetworkManager(); Register_Object(networkManager); #if 0 // //-------------------------------------------------------------------------- // Create the registry, load static object streams //-------------------------------------------------------------------------- // registry = MakeRegistry(); Register_Object(registry); registry->LoadStaticObjectStreamResource(); // //-------------------------------------------------------------------------- // Create the controls manager //-------------------------------------------------------------------------- // controlsManager = MakeControlsManager(); Register_Object(controlsManager); // //-------------------------------------------------------------------------- // Create the intercom manager //-------------------------------------------------------------------------- // intercomManager = MakeIntercomManager(); Register_Object(intercomManager); #endif // //-------------------------------------------------------------------------- // Add background tasks //-------------------------------------------------------------------------- // ApplicationTask *application_task; application_task = new RoutePacketTask; Register_Object(application_task); backgroundTasks->AddTask(application_task); application_task = new ProcessEventTask; Register_Object(application_task); backgroundTasks->AddTask(application_task); application_task = new CompleteCyclesTask; Register_Object(application_task); backgroundTasks->AddTask(application_task); } void TestApplication::Terminate() { Check(this); application = this; networkManager->Shutdown(); Application::Terminate(); }