Reset WorldObject position upon decay.

This commit is contained in:
MobiusDevelopment 2019-09-16 21:55:59 +00:00
parent d970536adc
commit ea7c46f6e8
28 changed files with 28 additions and 14 deletions

View File

@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
/** Y coordinate */
private volatile int _y = 0;
/** Z coordinate */
private volatile int _z = 0;
private volatile int _z = -10000;
/** Orientation */
private volatile int _heading = 0;
/** Instance id of object. 0 - Global */

View File

@ -45,6 +45,7 @@ public class DecayTaskManager
final Creature creature = entry.getKey();
DECAY_SCHEDULES.remove(creature);
creature.onDecay();
creature.setXYZ(0, 0, -10000);
}
}
}, 0, 1000);

View File

@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
/** Y coordinate */
private volatile int _y = 0;
/** Z coordinate */
private volatile int _z = 0;
private volatile int _z = -10000;
/** Orientation */
private volatile int _heading = 0;
/** Instance id of object. 0 - Global */

View File

@ -45,6 +45,7 @@ public class DecayTaskManager
final Creature creature = entry.getKey();
DECAY_SCHEDULES.remove(creature);
creature.onDecay();
creature.setXYZ(0, 0, -10000);
}
}
}, 0, 1000);

View File

@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
/** Y coordinate */
private volatile int _y = 0;
/** Z coordinate */
private volatile int _z = 0;
private volatile int _z = -10000;
/** Orientation */
private volatile int _heading = 0;
/** Instance id of object. 0 - Global */

View File

@ -45,6 +45,7 @@ public class DecayTaskManager
final Creature creature = entry.getKey();
DECAY_SCHEDULES.remove(creature);
creature.onDecay();
creature.setXYZ(0, 0, -10000);
}
}
}, 0, 1000);

View File

@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
/** Y coordinate */
private volatile int _y = 0;
/** Z coordinate */
private volatile int _z = 0;
private volatile int _z = -10000;
/** Orientation */
private volatile int _heading = 0;
/** Instance id of object. 0 - Global */

View File

@ -45,6 +45,7 @@ public class DecayTaskManager
final Creature creature = entry.getKey();
DECAY_SCHEDULES.remove(creature);
creature.onDecay();
creature.setXYZ(0, 0, -10000);
}
}
}, 0, 1000);

View File

@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
/** Y coordinate */
private volatile int _y = 0;
/** Z coordinate */
private volatile int _z = 0;
private volatile int _z = -10000;
/** Orientation */
private volatile int _heading = 0;
/** Instance id of object. 0 - Global */

View File

@ -45,6 +45,7 @@ public class DecayTaskManager
final Creature creature = entry.getKey();
DECAY_SCHEDULES.remove(creature);
creature.onDecay();
creature.setXYZ(0, 0, -10000);
}
}
}, 0, 1000);

View File

@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
/** Y coordinate */
private volatile int _y = 0;
/** Z coordinate */
private volatile int _z = 0;
private volatile int _z = -10000;
/** Orientation */
private volatile int _heading = 0;
/** Instance id of object. 0 - Global */

View File

@ -45,6 +45,7 @@ public class DecayTaskManager
final Creature creature = entry.getKey();
DECAY_SCHEDULES.remove(creature);
creature.onDecay();
creature.setXYZ(0, 0, -10000);
}
}
}, 0, 1000);

View File

@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
/** Y coordinate */
private volatile int _y = 0;
/** Z coordinate */
private volatile int _z = 0;
private volatile int _z = -10000;
/** Orientation */
private volatile int _heading = 0;
/** Instance id of object. 0 - Global */

View File

@ -45,6 +45,7 @@ public class DecayTaskManager
final Creature creature = entry.getKey();
DECAY_SCHEDULES.remove(creature);
creature.onDecay();
creature.setXYZ(0, 0, -10000);
}
}
}, 0, 1000);

View File

@ -66,7 +66,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
/** Y coordinate */
private volatile int _y = 0;
/** Z coordinate */
private volatile int _z = 0;
private volatile int _z = -10000;
/** Orientation */
private volatile int _heading = 0;
/** Instance id of object. 0 - Global */

View File

@ -45,6 +45,7 @@ public class DecayTaskManager
final Creature creature = entry.getKey();
DECAY_SCHEDULES.remove(creature);
creature.onDecay();
creature.setXYZ(0, 0, -10000);
}
}
}, 0, 1000);

View File

@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
/** Y coordinate */
private volatile int _y = 0;
/** Z coordinate */
private volatile int _z = 0;
private volatile int _z = -10000;
/** Orientation */
private volatile int _heading = 0;
/** Instance id of object. 0 - Global */

View File

@ -45,6 +45,7 @@ public class DecayTaskManager
final Creature creature = entry.getKey();
DECAY_SCHEDULES.remove(creature);
creature.onDecay();
creature.setXYZ(0, 0, -10000);
}
}
}, 0, 1000);

View File

@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
/** Y coordinate */
private volatile int _y = 0;
/** Z coordinate */
private volatile int _z = 0;
private volatile int _z = -10000;
/** Orientation */
private volatile int _heading = 0;
/** Instance id of object. 0 - Global */

View File

@ -45,6 +45,7 @@ public class DecayTaskManager
final Creature creature = entry.getKey();
DECAY_SCHEDULES.remove(creature);
creature.onDecay();
creature.setXYZ(0, 0, -10000);
}
}
}, 0, 1000);

View File

@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
/** Y coordinate */
private volatile int _y = 0;
/** Z coordinate */
private volatile int _z = 0;
private volatile int _z = -10000;
/** Orientation */
private volatile int _heading = 0;
/** Instance id of object. 0 - Global */

View File

@ -45,6 +45,7 @@ public class DecayTaskManager
final Creature creature = entry.getKey();
DECAY_SCHEDULES.remove(creature);
creature.onDecay();
creature.setXYZ(0, 0, -10000);
}
}
}, 0, 1000);

View File

@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
/** Y coordinate */
private volatile int _y = 0;
/** Z coordinate */
private volatile int _z = 0;
private volatile int _z = -10000;
/** Orientation */
private volatile int _heading = 0;
/** Instance id of object. 0 - Global */

View File

@ -45,6 +45,7 @@ public class DecayTaskManager
final Creature creature = entry.getKey();
DECAY_SCHEDULES.remove(creature);
creature.onDecay();
creature.setXYZ(0, 0, -10000);
}
}
}, 0, 1000);

View File

@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
/** Y coordinate */
private volatile int _y = 0;
/** Z coordinate */
private volatile int _z = 0;
private volatile int _z = -10000;
/** Orientation */
private volatile int _heading = 0;
/** Instance id of object. 0 - Global */

View File

@ -45,6 +45,7 @@ public class DecayTaskManager
final Creature creature = entry.getKey();
DECAY_SCHEDULES.remove(creature);
creature.onDecay();
creature.setXYZ(0, 0, -10000);
}
}
}, 0, 1000);

View File

@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
/** Y coordinate */
private volatile int _y = 0;
/** Z coordinate */
private volatile int _z = 0;
private volatile int _z = -10000;
/** Orientation */
private volatile int _heading = 0;
/** Instance id of object. 0 - Global */

View File

@ -45,6 +45,7 @@ public class DecayTaskManager
final Creature creature = entry.getKey();
DECAY_SCHEDULES.remove(creature);
creature.onDecay();
creature.setXYZ(0, 0, -10000);
}
}
}, 0, 1000);