prediction.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Filename: prediction.h
  2. // Created by: cary (20Dec00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef __PREDICTION_H__
  19. #define __PREDICTION_H__
  20. #include <directbase.h>
  21. #include <luse.h>
  22. class Prediction {
  23. protected:
  24. LPoint3f _curr_p;
  25. LVector3f _curr_v;
  26. PUBLISHED:
  27. Prediction(LPoint3f&);
  28. virtual ~Prediction(void);
  29. virtual void step(void);
  30. virtual void new_telemetry(LPoint3f&);
  31. virtual void force_telemetry(LPoint3f&);
  32. LPoint3f get_pos(void) const;
  33. LVector3f get_vel(void) const;
  34. };
  35. class NullPrediction : public Prediction {
  36. PUBLISHED:
  37. NullPrediction(LPoint3f&);
  38. virtual ~NullPrediction(void);
  39. virtual void step(void);
  40. virtual void new_telemetry(LPoint3f&);
  41. virtual void force_telemetry(LPoint3f&);
  42. };
  43. class LinearPrediction : public Prediction {
  44. PUBLISHED:
  45. LinearPrediction(LPoint3f&);
  46. virtual ~LinearPrediction(void);
  47. virtual void step(void);
  48. virtual void new_telemetry(LPoint3f&);
  49. virtual void force_telemetry(LPoint3f&);
  50. };
  51. #endif /* __PREDICTION_H__ */