Пример #1
0
    @Override
    public void runImpl() {
      if (_shuttle == null) {
        return;
      }

      _shuttle.getCurrentFloor().stopEvent();
      _shuttle.getNextFloor().reCalcNextTime(false);
    }
Пример #2
0
 @Override
 protected final void writeImpl() {
   writeD(_shuttle.getBoatId()); // Shuttle ID (Arkan: 1,2; Cruma: 3)
   writeD(_shuttle.getX()); // X
   writeD(_shuttle.getY()); // Y
   writeD(_shuttle.getZ()); // Z
   writeD(0 /* _shuttle.getHeading() */); // Maybe H
   writeD(_shuttle.getBoatId()); // unk??
   writeD(_doors.size()); // doors_count
   for (ShuttleDoor door : _doors) {
     int doorId = door.getId();
     writeD(doorId); // Door ID
     writeD(door.unkParam[0]); // unk0
     writeD(door.unkParam[1]); // unk1
     writeD(door.unkParam[2]); // unk2
     writeD(door.unkParam[3]); // unk3
     writeD(door.unkParam[4]); // unk4
     writeD(door.unkParam[5]); // unk5
     writeD(door.unkParam[6]); // unk6
     writeD(door.unkParam[7]); // unk7
     writeD(door.unkParam[8]); // unk8
     boolean thisFloorDoor = _shuttle.getCurrentFloor().isThisFloorDoor(doorId);
     writeD(thisFloorDoor && _shuttle.isDocked());
     writeD(thisFloorDoor);
   }
 }
Пример #3
0
 public ExShuttleInfoPacket(Shuttle shuttle) {
   _shuttle = shuttle;
   _doors = shuttle.getTemplate().getDoors();
 }