DamageBrush.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef DAMAGEBRUSH_H
  2. #define DAMAGEBRUSH_H
  3. /*************************************************************************************************\
  4. DamageBrush.h : Interface for the DamageBrush component.
  5. //---------------------------------------------------------------------------//
  6. // Copyright (C) Microsoft Corporation. All rights reserved. //
  7. //===========================================================================//
  8. \*************************************************************************************************/
  9. #ifndef BRUSH_H
  10. #include "Brush.h"
  11. #endif
  12. #include "Action.h"
  13. #include "EditorObjects.h"
  14. //*************************************************************************************************
  15. /**************************************************************************************************
  16. CLASS DESCRIPTION
  17. DamageBrush:
  18. **************************************************************************************************/
  19. class DamageBrush: public Brush
  20. {
  21. public:
  22. DamageBrush(bool bDamage ){ damage = bDamage; pAction = NULL; }
  23. virtual ~DamageBrush(){}
  24. virtual bool beginPaint();
  25. virtual Action* endPaint();
  26. virtual bool paint( Stuff::Vector3D& worldPos, int screenX, int screenY );
  27. virtual bool canPaint( Stuff::Vector3D& worldPos, int screenX, int screenY, int flags );
  28. virtual bool canPaintSelection( );
  29. virtual Action* applyToSelection();
  30. bool damage;
  31. private:
  32. ModifyBuildingAction* pAction;
  33. };
  34. //*************************************************************************************************
  35. #endif // end of file ( DamageBrush.h )