Instructions Jenkins Doxygen

[Added] The jedi manager is now notified about player creation, login 40/840/2
authorLoshult <loshult@swgemu.com>
Thu, 26 Sep 2013 19:07:00 +0000 (19:07 +0000)
committerLoshult <loshult@swgemu.com>
Thu, 26 Sep 2013 19:07:00 +0000 (19:07 +0000)
and logout.

Change-Id: I0b253c4a8518fe23126213a924c9311512ce7725

MMOCoreORB/src/server/zone/managers/player/creation/PlayerCreationManager.cpp
MMOCoreORB/src/server/zone/objects/player/PlayerObjectImplementation.cpp

index 9e8e6d5..35d0394 100644 (file)
@@ -68,6 +68,7 @@ which carries forward this exception.
 #include "server/zone/templates/customization/AssetCustomizationManagerTemplate.h"
 #include "server/zone/templates/params/PaletteColorCustomizationVariable.h"
 #include "server/zone/templates/customization/BasicRangedIntCustomizationVariable.h"
+#include "server/zone/managers/jedi/JediManager.h"
 
 PlayerCreationManager::PlayerCreationManager() :
                Logger("PlayerCreationManager") {
@@ -613,6 +614,7 @@ bool PlayerCreationManager::createCharacter(MessageCallback* data) {
 
        client->addCharacter(playerCreature->getObjectID(), zoneServer.get()->getGalaxyID());
 
+       JediManager::instance()->onPlayerCreation(playerCreature);
 
        return true;
 }
index 49c2e4e..a1509fe 100644 (file)
@@ -113,6 +113,8 @@ which carries forward this exception.
 #include "server/zone/objects/player/events/BountyHunterTefRemovalTask.h"
 #include "server/zone/managers/visibility/VisibilityManager.h"
 #include "server/zone/managers/gcw/GCWManager.h"
+#include "server/zone/managers/jedi/JediManager.h"
+
 void PlayerObjectImplementation::initializeTransientMembers() {
        IntangibleObjectImplementation::initializeTransientMembers();
 
@@ -1125,6 +1127,9 @@ void PlayerObjectImplementation::notifyOnline() {
 
        //Login to visibility manager
        VisibilityManager::instance()->login(playerCreature);
+
+       //Login to jedi manager
+       JediManager::instance()->onPlayerLogin(playerCreature);
 }
 
 void PlayerObjectImplementation::notifyOffline() {
@@ -1151,6 +1156,9 @@ void PlayerObjectImplementation::notifyOffline() {
 
        //Logout from visibility manager
        VisibilityManager::instance()->logout(playerCreature);
+
+       //Logout from jedi manager
+       JediManager::instance()->onPlayerLogout(playerCreature);
 }
 
 void PlayerObjectImplementation::setLanguageID(byte language, bool notifyClient) {