Beispiel #1
0
        int AtLoadingDock()
        {
            Rek cargo = this.Unload();

            this.CarriedRek = null;
            this._world.TrainArrived(this, cargo);

            this._state = TreiState.AT_LOADING_DOCK;

            return(0);
        }
Beispiel #2
0
        public Trein(double x, double y, double z, double rotationX, double rotationY, double rotationZ, World w)
        {
            this.type   = "trein";
            this.guid   = Guid.NewGuid();
            this._world = w;
            this._x     = x;
            this._y     = y;
            this._z     = z;

            this._rX = rotationX;
            this._rY = rotationY;
            this._rZ = rotationZ;

            this.CarriedRek = this._world.CreateRek(this.x, this.y, this.z);

            _state = TreiState.TRAIN_INCOMMING;
        }
Beispiel #3
0
 void Depart()
 {
     this._state = TreiState.TRAIN_DEPARTING;
 }