LastPositions.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. #ifndef SE_INCL_LASTPOSITIONS_H
  13. #define SE_INCL_LASTPOSITIONS_H
  14. #ifdef PRAGMA_ONCE
  15. #pragma once
  16. #endif
  17. #include <Engine/Templates/StaticArray.h>
  18. #include <Engine/Math/Vector.h>
  19. // last positions for particle systems
  20. class ENGINE_API CLastPositions {
  21. public:
  22. CStaticArray<FLOAT3D> lp_avPositions;
  23. INDEX lp_iLast; // where entity was last placed
  24. INDEX lp_ctUsed; // how many positions are actually used
  25. TIME lp_tmLastAdded; // time when last updated
  26. CLastPositions() {};
  27. CLastPositions(const CLastPositions &lpOrg);
  28. // add a new position
  29. void AddPosition(const FLOAT3D &vPos);
  30. // get a position
  31. const FLOAT3D &GetPosition(INDEX iPre);
  32. };
  33. #endif /* include-once check. */