Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
BigTileTool Class Reference

#include <TileTool.h>

Inherits TileTool.

Public Member Functions

virtual void activate ()
 Become the current tool.
 
 BigTileTool (void)
 Constructor.
 
virtual Int getWidth (void)
 
- Public Member Functions inherited from TileTool
 TileTool (void)
 Constructor.
 
 ~TileTool (void)
 Destructor.
 
virtual void mouseDown (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc)
 Common mouse down code for left and right clicks.
 
virtual void mouseUp (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc)
 Common mouse up code for left and right clicks.
 
virtual void mouseMoved (TTrackingMode m, CPoint viewPt, WbView *pView, CWorldBuilderDoc *pDoc)
 Common mouse moved code for left and right clicks.
 
virtual WorldHeightMapEditgetHeightMap (void)
 
- Public Member Functions inherited from Tool
 Tool (Int toolID, Int cursorID)
 Tool class.
 
virtual ~Tool (void)
 Destructor.
 
Int getToolID (void)
 
virtual void setCursor (void)
 
virtual void deactivate ()
 
virtual Bool followsTerrain (void)
 Become not the current tool.
 

Static Public Member Functions

static void setWidth (Int width)
 Shows the terrain materials options panel.
 
- Static Public Member Functions inherited from Tool
static Real calcRoundBlendFactor (CPoint center, Int x, Int y, Int brushWidth, Int featherWidth)
 Calculate the round blend factor.
 
static Real calcSquareBlendFactor (CPoint center, Int x, Int y, Int brushWidth, Int featherWidth)
 Calculate the square blend factor.
 
static void getCenterIndex (Coord3D *docLocP, Int brushWidth, CPoint *center, CWorldBuilderDoc *pDoc)
 Gets the cell index for the center of the brush.
 
static void getAllIndexesIn (const Coord3D *bl, const Coord3D *br, const Coord3D *tl, const Coord3D *tr, Int widthOutside, CWorldBuilderDoc *pDoc, VecHeightMapIndexes *allIndices)
 

Static Protected Attributes

static Int m_currentWidth = 0
 

Additional Inherited Members

- Protected Attributes inherited from TileTool
WorldHeightMapEditm_htMapEditCopy
 
Int m_textureClassToDraw
 
CPoint m_prevViewPt
 
- Protected Attributes inherited from Tool
Int m_toolID
 
Int m_cursorID
 
HCURSOR m_cursor
 
Int m_prevXIndex
 
Int m_prevYIndex
 

Detailed Description

Definition at line 56 of file TileTool.h.

Constructor & Destructor Documentation

◆ BigTileTool()

BigTileTool::BigTileTool ( void )

Constructor.

Definition at line 185 of file TileTool.cpp.

Member Function Documentation

◆ activate()

void BigTileTool::activate ( )
virtual

Become the current tool.

Shows the terrain materials options panel.

Reimplemented from TileTool.

Definition at line 198 of file TileTool.cpp.

◆ getWidth()

virtual Int BigTileTool::getWidth ( void )
inlinevirtual

Reimplemented from TileTool.

Definition at line 69 of file TileTool.h.

◆ setWidth()

void BigTileTool::setWidth ( Int width)
static

Shows the terrain materials options panel.

Definition at line 191 of file TileTool.cpp.

Member Data Documentation

◆ m_currentWidth

Int BigTileTool::m_currentWidth = 0
staticprotected

Definition at line 60 of file TileTool.h.


The documentation for this class was generated from the following files: