Changeset 912 for core3/trunk/MMOCoreORB/src/server/zone/objects/building/cell/CellObjectImplementation.cpp
- Timestamp:
- 11/08/08 00:16:10 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
core3/trunk/MMOCoreORB/src/server/zone/objects/building/cell/CellObjectImplementation.cpp
r719 r912 58 58 59 59 parent = (SceneObject*) buio; 60 61 60 objectType = SceneObjectImplementation::CELL; 62 61 … … 68 67 setLogging(false); 69 68 setGlobalLogging(true); 69 70 cellNumber = 0; 71 itemAttributes = new ItemAttributes(); 70 72 } 71 73 72 CellObjectImplementation::CellObjectImplementation(uint64 objID, BuildingObject* buio, uint64 cid) : 73 CellObjectServant(objID, CELL) { 74 75 cellID = cid; 76 //cout << "Cell Constructor objID: " << objID << " cellID: " << cid << endl; 74 CellObjectImplementation::CellObjectImplementation(uint64 objID, BuildingObject* buio, int number) : CellObjectServant(objID, CELL) { 77 75 78 76 parent = (SceneObject*) buio; 79 80 77 objectType = SceneObjectImplementation::CELL; 81 78 82 79 children.setInsertPlan(SortedVector<SceneObject*>::NO_DUPLICATE); 80 stringstream name; 81 name << "Cell :" << objID; 82 setLoggingName(name.str()); 83 84 setLogging(false); 85 setGlobalLogging(true); 86 87 cellNumber = number; 88 itemAttributes = new ItemAttributes(); 83 89 } 84 90 85 91 86 92 CellObjectImplementation::~CellObjectImplementation() { 93 delete itemAttributes; 94 itemAttributes = NULL; 87 95 } 88 96 … … 99 107 } 100 108 109 void CellObjectImplementation::parseItemAttributes() { 110 string attr = "cellNumber"; 111 setCellNumber(itemAttributes->getIntAttribute(attr)); 112 } 113 114 101 115 void CellObjectImplementation::removeChild(SceneObject* obj, bool doLock) { 102 116 wlock(doLock);