Advertisement
agmike

LTrackSearch redone?

Aug 27th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.75 KB | None | 0 0
  1. final class LTrackSearch
  2. {
  3.     define public int Forward = Junction.DIRECTION_FORWARD;
  4.     define public int Backward = Junction.DIRECTION_BACKWARD;
  5.     define public int Left = Junction.DIRECTION_LEFT;
  6.     define public int Right = Junction.DIRECTION_RIGHT;
  7.     define public int Undefined = Junction.DIRECTION_NONE;
  8.    
  9.     public bool EndOfTrack();
  10.    
  11.     public bool OverflowError();
  12.     public int  JunctionError();
  13.     public bool HasErrors();
  14.     public bool IsOk();
  15.    
  16.     public bool MoveNext();
  17.     public object Current();
  18.     public bool GetFacing();
  19.     public float GetDistance();
  20.    
  21.     public bool MoveNextMapObject();
  22.     public MapObject CurrentMapObject();
  23.     public bool MoveNextTrackside();
  24.     public Trackside CurrentTrackside();
  25.     public bool MoveNextJunction();
  26.     public Junction CurrentJunction();
  27.    
  28.     public bool OnTrackside();
  29.     public bool OnJunction();
  30.     //public bool OnSceneryWithTrack();
  31.    
  32.     public int GetArrivedDirection();
  33.     public bool ChangeDirection(int dir);
  34.    
  35.     public bool PushState();
  36.     public bool PushState(int dir);
  37.    
  38.     public bool PopState();
  39.    
  40.     public void Reset(int dir);
  41.    
  42.     public void Reverse();
  43.    
  44.     public LTrackSearch Clone();
  45.    
  46.    
  47.     public LTrackSearch DistanceLimit(float maxDistance);
  48.     public LTrackSearch IterationLimit(int iterLimit);
  49.     public LTrackSearch DepthLimit(int spawnLimit);
  50.     public LTrackSearch SleepAfter(int iterations);
  51.     public LTrackSearch Begin(object origin, int dir);
  52.    
  53.    
  54.     // ****************************************************
  55.     //
  56.     //    I M P L E M E N T A T I O N
  57.     //
  58.     // ****************************************************
  59.  
  60.     We have cookies.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement