12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #ifndef MINEBRUSH_H
- #define MINEBRUSH_H
- /*************************************************************************************************\
- MineBrush.h : Interface for the MineBrush component.
- //---------------------------------------------------------------------------//
- // Copyright (C) Microsoft Corporation. All rights reserved. //
- //===========================================================================//
- \*************************************************************************************************/
- #ifndef BRUSH_H
- #include "Brush.h"
- #endif
- #include "Action.h"
- #include "EditorObjects.h"
- //*************************************************************************************************
- /**************************************************************************************************
- CLASS DESCRIPTION
- MineBrush:
- **************************************************************************************************/
- class MineBrush: public Brush
- {
- public:
-
- MineBrush(){ pAction = NULL; }
- virtual ~MineBrush(){}
- virtual bool beginPaint();
- virtual Action* endPaint();
- virtual bool paint( Stuff::Vector3D& worldPos, int screenX, int screenY );
- virtual bool canPaint( Stuff::Vector3D& worldPos, int screenX, int screenY, int flags );
- virtual bool canPaintSelection( );
- virtual Action* applyToSelection();
- private:
- class MineAction : public Action
- {
- public:
- virtual ~MineAction(){}
- virtual bool redo();
- virtual bool undo();
- struct CTileMineInfo {
- int row;
- int column;
- unsigned long mineState;
- };
- typedef EList< CTileMineInfo, const CTileMineInfo&> MINE_INFO_LIST;
- MINE_INFO_LIST mineInfoList;
- void AddChangedTileMineInfo( CTileMineInfo& info );
- };
- MineAction* pAction;
- };
- //*************************************************************************************************
- #endif // end of file ( MineBrush.h )
|