Beispiel #1
0
 public TrackHistory(int x, int y, TrackGenerator.TrackSlope slope)
 {
     this.X     = (short)x;
     this.Y     = (short)y;
     this.Slope = slope;
     this.Mode  = TrackGenerator.TrackMode.Normal;
 }
Beispiel #2
0
 private void AppendToHistory(TrackGenerator.TrackSlope slope, TrackGenerator.TrackMode mode = TrackGenerator.TrackMode.Normal)
 {
     this._history[this._length]      = new TrackGenerator.TrackHistory((int)this._history[this._length - 1].X + this._xDirection, (int)((sbyte)this._history[this._length - 1].Y + slope), slope);
     this._history[this._length].Mode = mode;
     ++this._length;
 }