Assembla home | Assembla project page
 
Show
Ignore:
Timestamp:
11/08/08 00:16:10 (1 year ago)
Author:
McMahon
Message:

SQL Update
StructureManager? - new interface for creating+updating player structures (houses + harvesters)
Updated harvester remove harv data
[Buildings] thanks to Farmer John its now (0,0,1,0) instead of (0,0,0,1) - rejoice player housing works! (sorta)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • core3/trunk/MMOCoreORB/src/server/zone/objects/building/cell/CellObjectImplementation.cpp

    r719 r912  
    5858 
    5959        parent = (SceneObject*) buio; 
    60  
    6160        objectType = SceneObjectImplementation::CELL; 
    6261 
     
    6867        setLogging(false); 
    6968        setGlobalLogging(true); 
     69 
     70        cellNumber = 0; 
     71        itemAttributes = new ItemAttributes(); 
    7072} 
    7173 
    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; 
     74CellObjectImplementation::CellObjectImplementation(uint64 objID, BuildingObject* buio, int number) : CellObjectServant(objID, CELL) { 
    7775 
    7876        parent = (SceneObject*) buio; 
    79  
    8077        objectType = SceneObjectImplementation::CELL; 
    8178 
    8279        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(); 
    8389} 
    8490 
    8591 
    8692CellObjectImplementation::~CellObjectImplementation() { 
     93        delete itemAttributes; 
     94        itemAttributes = NULL; 
    8795} 
    8896 
     
    99107} 
    100108 
     109void CellObjectImplementation::parseItemAttributes() { 
     110        string attr = "cellNumber"; 
     111        setCellNumber(itemAttributes->getIntAttribute(attr)); 
     112} 
     113 
     114 
    101115void CellObjectImplementation::removeChild(SceneObject* obj, bool doLock) { 
    102116        wlock(doLock);