MovableBrushEntity.es 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. /*
  13. * Brush entity that can move.
  14. */
  15. 3
  16. %{
  17. #include "StdH.h"
  18. #include <Engine/Entities/InternalClasses.h>
  19. %}
  20. class export CMovableBrushEntity : CMovableEntity {
  21. name "MovableBrushEntity";
  22. thumbnail "";
  23. properties:
  24. components:
  25. functions:
  26. /*
  27. * Calculate physics for moving.
  28. */
  29. export void DoMoving(void) // override from CMovableEntity
  30. {
  31. CMovableEntity::DoMoving();
  32. // recalculate all bounding boxes relative to new position
  33. // en_pbrBrush->CalculateBoundingBoxes(); // !!! why here (its done in SetPlacement()?)
  34. }
  35. /* Copy entity from another entity of same class. */
  36. /*CMovableBrushEntity &operator=(CMovableBrushEntity &enOther)
  37. {
  38. CMovableEntity::operator=(enOther);
  39. return *this;
  40. }*/
  41. /* Read from stream. */
  42. export void Read_t( CTStream *istr) // throw char *
  43. {
  44. CMovableEntity::Read_t(istr);
  45. }
  46. /* Write to stream. */
  47. export void Write_t( CTStream *ostr) // throw char *
  48. {
  49. CMovableEntity::Write_t(ostr);
  50. }
  51. procedures:
  52. // must have at least one procedure per class
  53. Dummy() {};
  54. };