more work on AI, added odb for object id(should hopefully fix object id duplicates), fixed tons of bugs

This commit is contained in:
Light2
2014-03-10 00:33:34 +01:00
parent 072106b6a6
commit 807025ec0b
47 changed files with 1365 additions and 212 deletions
@@ -195,7 +195,8 @@ public class PlayerObject extends IntangibleObject {
synchronized(objectMutex) {
this.totalPlayTime = totalPlayTime;
}
notifyObservers(messageBuilder.buildTotalPlayTimeDelta(totalPlayTime), true);
//notifyObservers(messageBuilder.buildTotalPlayTimeDelta(totalPlayTime), true);
getContainer().getClient().getSession().write(messageBuilder.buildTotalPlayTimeDelta(totalPlayTime));
}
public String getHome() {
@@ -596,13 +597,12 @@ public class PlayerObject extends IntangibleObject {
if(destination == null || destination.getSession() == null)
return;
//if(destination.getParent().getObjectID() == getParentId()) { // only send to self
destination.getSession().write(messageBuilder.buildBaseline3());
destination.getSession().write(messageBuilder.buildBaseline6());
destination.getSession().write(messageBuilder.buildBaseline3());
destination.getSession().write(messageBuilder.buildBaseline6());
if(destination.getParent().getObjectID() == getParentId()) { // only send to self
destination.getSession().write(messageBuilder.buildBaseline8());
destination.getSession().write(messageBuilder.buildBaseline9());
//}
}
}