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

#include <WorldBuilder.h>

Inherits CWinApp.

Public Member Functions

 CWorldBuilderApp ()
 
 ~CWorldBuilderApp ()
 
virtual BOOL InitInstance ()
 
virtual int ExitInstance ()
 
afx_msg void OnAppAbout ()
 
afx_msg void OnResetWindows ()
 
afx_msg void OnFileOpen ()
 
afx_msg void OnTexturesizingMapclifftextures ()
 
afx_msg void OnUpdateTexturesizingMapclifftextures (CCmdUI *pCmdUI)
 
CDocTemplate * Get3dTemplate ()
 
void selectBrushTool (void)
 Set the brush tool as the active tool.
 
void selectPointerTool (void)
 Set the pointer tool as the active tool.
 
void selectHandToolTemp (void)
 Set the hand tool as the cur tool (but not active tool)
 
void setActiveTool (Tool *newTool)
 Set the tool that will be active.
 
void setCurrentDirectory (AsciiString dir)
 Sets the current directry for file opens.
 
ToolgetCurTool ()
 
void updateCurTool (Bool forceHand)
 Check to see if any keyboard overrides are changing the current tool.
 
void setPolyTool (void)
 Switch to the poly tool if we aren't already.
 
Bool isHandScroll (void)
 Return true if the hand scroll tool is active.
 
void lockCurTool ()
 
void unlockCurTool ()
 
Bool isCurToolLocked ()
 
MapObjectgetMapObjPasteList (void)
 Note - read only data - make yourself a copy.
 
void setMapObjPasteList (MapObject *list)
 Note - the app owns this, and will delete it on close.
 
virtual BOOL OnCmdMsg (UINT nID, int nCode, void *pExtra, AFX_CMDHANDLERINFO *pHandlerInfo)
 Handles command messages.
 

Protected Types

enum  { NUM_VIEW_TOOLS =25 }
 

Protected Member Functions

void deletePasteObjList (void)
 

Protected Attributes

Toolm_tools [NUM_VIEW_TOOLS]
 array of tool pointers.
 
Toolm_curTool
 Currently active tool.
 
Toolm_selTool
 Normal tool. If we hit alt, curTool turns to eyedropper.
 
BrushTool m_brushTool
 Height brush tool.
 
TileTool m_tileTool
 Single texture tile tool.
 
BigTileTool m_bigTileTool
 Wide texture tile tool.
 
FeatherTool m_featherTool
 Feather the height values tool.
 
AutoEdgeOutTool m_autoEdgeOutTool
 Auto blend texture edges out tool.
 
FloodFillTool m_floodFillTool
 Flood fill tool.
 
MoundTool m_moundTool
 Add height to height values tool.
 
DigTool m_digTool
 Remove height from height values tool.
 
EyedropperTool m_eyedropperTool
 Eyedropper tool.
 
ObjectTool m_objectTool
 Add and orient object tool.
 
PointerTool m_pointerTool
 Select and move/rotate tool.
 
BlendEdgeTool m_blendEdgeTool
 Blend a single edge tool.
 
GroveTool m_groveTool
 Plant a grove of trees tool.
 
HandScrollTool m_handScrollTool
 Scroll tool.
 
RoadTool m_roadTool
 Road tool.
 
MeshMoldTool m_meshMoldTool
 Mesh shaping mold tool.
 
WaypointTool m_waypointTool
 Waypoint tool.
 
PolygonTool m_polygonTool
 Polygon tool.
 
WaterTool m_waterTool
 Water tool.
 
BuildListTool m_buildListTool
 Build List tool.
 
FenceTool m_fenceTool
 Fence tool.
 
RampTool m_rampTool
 Ramp tool.
 
ScorchTool m_scorchTool
 Scorch tool.
 
BorderTool m_borderTool
 Border tool.
 
RulerTool m_rulerTool
 Ruler tool.
 
Int m_lockCurTool
 
AsciiString m_currentDirectory
 Current directory for open file.
 
CDocTemplate * m_3dtemplate
 
MapObjectm_pasteMapObjList
 List of copied/cut map objects.
 

Detailed Description

Definition at line 76 of file WorldBuilder.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
NUM_VIEW_TOOLS 

Definition at line 102 of file WorldBuilder.h.

Constructor & Destructor Documentation

◆ CWorldBuilderApp()

CWorldBuilderApp::CWorldBuilderApp ( )

Definition at line 203 of file WorldBuilder.cpp.

◆ ~CWorldBuilderApp()

CWorldBuilderApp::~CWorldBuilderApp ( )

Definition at line 256 of file WorldBuilder.cpp.

Member Function Documentation

◆ deletePasteObjList()

void CWorldBuilderApp::deletePasteObjList ( void )
inlineprotected

Definition at line 142 of file WorldBuilder.h.

◆ ExitInstance()

int CWorldBuilderApp::ExitInstance ( )
virtual

Definition at line 647 of file WorldBuilder.cpp.

◆ Get3dTemplate()

CDocTemplate * CWorldBuilderApp::Get3dTemplate ( )
inline

Definition at line 151 of file WorldBuilder.h.

◆ getCurTool()

Tool * CWorldBuilderApp::getCurTool ( )
inline

Definition at line 168 of file WorldBuilder.h.

◆ getMapObjPasteList()

MapObject * CWorldBuilderApp::getMapObjPasteList ( void )
inline

Note - read only data - make yourself a copy.

Definition at line 184 of file WorldBuilder.h.

◆ InitInstance()

BOOL CWorldBuilderApp::InitInstance ( )
virtual

Definition at line 273 of file WorldBuilder.cpp.

◆ isCurToolLocked()

Bool CWorldBuilderApp::isCurToolLocked ( )
inline

Definition at line 181 of file WorldBuilder.h.

◆ isHandScroll()

Bool CWorldBuilderApp::isHandScroll ( void )
inline

Return true if the hand scroll tool is active.

Definition at line 177 of file WorldBuilder.h.

◆ lockCurTool()

void CWorldBuilderApp::lockCurTool ( )
inline

Definition at line 179 of file WorldBuilder.h.

◆ OnAppAbout()

void CWorldBuilderApp::OnAppAbout ( )

Definition at line 638 of file WorldBuilder.cpp.

◆ OnCmdMsg()

BOOL CWorldBuilderApp::OnCmdMsg ( UINT nID,
int nCode,
void * pExtra,
AFX_CMDHANDLERINFO * pHandlerInfo )
virtual

Handles command messages.

Definition at line 496 of file WorldBuilder.cpp.

◆ OnFileOpen()

void CWorldBuilderApp::OnFileOpen ( )

Definition at line 691 of file WorldBuilder.cpp.

◆ OnResetWindows()

void CWorldBuilderApp::OnResetWindows ( )

Definition at line 683 of file WorldBuilder.cpp.

◆ OnTexturesizingMapclifftextures()

void CWorldBuilderApp::OnTexturesizingMapclifftextures ( )

Definition at line 719 of file WorldBuilder.cpp.

◆ OnUpdateTexturesizingMapclifftextures()

void CWorldBuilderApp::OnUpdateTexturesizingMapclifftextures ( CCmdUI * pCmdUI)

Definition at line 726 of file WorldBuilder.cpp.

◆ selectBrushTool()

void CWorldBuilderApp::selectBrushTool ( void )
inline

Set the brush tool as the active tool.

Definition at line 154 of file WorldBuilder.h.

◆ selectHandToolTemp()

void CWorldBuilderApp::selectHandToolTemp ( void )
inline

Set the hand tool as the cur tool (but not active tool)

Definition at line 160 of file WorldBuilder.h.

◆ selectPointerTool()

void CWorldBuilderApp::selectPointerTool ( void )

Set the pointer tool as the active tool.

Sets the active tool to the pointer, and clears the selection.

Definition at line 533 of file WorldBuilder.cpp.

◆ setActiveTool()

void CWorldBuilderApp::setActiveTool ( Tool * pNewTool)

Set the tool that will be active.

Sets the active tool, and activates it after deactivating the current tool.

Definition at line 545 of file WorldBuilder.cpp.

◆ setCurrentDirectory()

void CWorldBuilderApp::setCurrentDirectory ( AsciiString dir)
inline

Sets the current directry for file opens.

Definition at line 166 of file WorldBuilder.h.

◆ setMapObjPasteList()

void CWorldBuilderApp::setMapObjPasteList ( MapObject * list)
inline

Note - the app owns this, and will delete it on close.

Definition at line 187 of file WorldBuilder.h.

◆ setPolyTool()

void CWorldBuilderApp::setPolyTool ( void )
inline

Switch to the poly tool if we aren't already.

Definition at line 174 of file WorldBuilder.h.

◆ unlockCurTool()

void CWorldBuilderApp::unlockCurTool ( )
inline

Definition at line 180 of file WorldBuilder.h.

◆ updateCurTool()

void CWorldBuilderApp::updateCurTool ( Bool forceHand)

Check to see if any keyboard overrides are changing the current tool.

Checks to see if any key modifiers (ctrl or alt) are pressed. If so, selectes the appropriate tool, else uses the normal tool.

Definition at line 567 of file WorldBuilder.cpp.

Member Data Documentation

◆ m_3dtemplate

CDocTemplate* CWorldBuilderApp::m_3dtemplate
protected

Definition at line 137 of file WorldBuilder.h.

◆ m_autoEdgeOutTool

AutoEdgeOutTool CWorldBuilderApp::m_autoEdgeOutTool
protected

Auto blend texture edges out tool.

Definition at line 111 of file WorldBuilder.h.

◆ m_bigTileTool

BigTileTool CWorldBuilderApp::m_bigTileTool
protected

Wide texture tile tool.

Definition at line 109 of file WorldBuilder.h.

◆ m_blendEdgeTool

BlendEdgeTool CWorldBuilderApp::m_blendEdgeTool
protected

Blend a single edge tool.

Definition at line 118 of file WorldBuilder.h.

◆ m_borderTool

BorderTool CWorldBuilderApp::m_borderTool
protected

Border tool.

Definition at line 130 of file WorldBuilder.h.

◆ m_brushTool

BrushTool CWorldBuilderApp::m_brushTool
protected

Height brush tool.

Definition at line 107 of file WorldBuilder.h.

◆ m_buildListTool

BuildListTool CWorldBuilderApp::m_buildListTool
protected

Build List tool.

Definition at line 126 of file WorldBuilder.h.

◆ m_currentDirectory

AsciiString CWorldBuilderApp::m_currentDirectory
protected

Current directory for open file.

Definition at line 135 of file WorldBuilder.h.

◆ m_curTool

Tool* CWorldBuilderApp::m_curTool
protected

Currently active tool.

Definition at line 105 of file WorldBuilder.h.

◆ m_digTool

DigTool CWorldBuilderApp::m_digTool
protected

Remove height from height values tool.

Definition at line 114 of file WorldBuilder.h.

◆ m_eyedropperTool

EyedropperTool CWorldBuilderApp::m_eyedropperTool
protected

Eyedropper tool.

Definition at line 115 of file WorldBuilder.h.

◆ m_featherTool

FeatherTool CWorldBuilderApp::m_featherTool
protected

Feather the height values tool.

Definition at line 110 of file WorldBuilder.h.

◆ m_fenceTool

FenceTool CWorldBuilderApp::m_fenceTool
protected

Fence tool.

Definition at line 127 of file WorldBuilder.h.

◆ m_floodFillTool

FloodFillTool CWorldBuilderApp::m_floodFillTool
protected

Flood fill tool.

Definition at line 112 of file WorldBuilder.h.

◆ m_groveTool

GroveTool CWorldBuilderApp::m_groveTool
protected

Plant a grove of trees tool.

Definition at line 119 of file WorldBuilder.h.

◆ m_handScrollTool

HandScrollTool CWorldBuilderApp::m_handScrollTool
protected

Scroll tool.

Definition at line 120 of file WorldBuilder.h.

◆ m_lockCurTool

Int CWorldBuilderApp::m_lockCurTool
protected

Definition at line 133 of file WorldBuilder.h.

◆ m_meshMoldTool

MeshMoldTool CWorldBuilderApp::m_meshMoldTool
protected

Mesh shaping mold tool.

Definition at line 122 of file WorldBuilder.h.

◆ m_moundTool

MoundTool CWorldBuilderApp::m_moundTool
protected

Add height to height values tool.

Definition at line 113 of file WorldBuilder.h.

◆ m_objectTool

ObjectTool CWorldBuilderApp::m_objectTool
protected

Add and orient object tool.

Definition at line 116 of file WorldBuilder.h.

◆ m_pasteMapObjList

MapObject* CWorldBuilderApp::m_pasteMapObjList
protected

List of copied/cut map objects.

Definition at line 139 of file WorldBuilder.h.

◆ m_pointerTool

PointerTool CWorldBuilderApp::m_pointerTool
protected

Select and move/rotate tool.

Definition at line 117 of file WorldBuilder.h.

◆ m_polygonTool

PolygonTool CWorldBuilderApp::m_polygonTool
protected

Polygon tool.

Definition at line 124 of file WorldBuilder.h.

◆ m_rampTool

RampTool CWorldBuilderApp::m_rampTool
protected

Ramp tool.

Definition at line 128 of file WorldBuilder.h.

◆ m_roadTool

RoadTool CWorldBuilderApp::m_roadTool
protected

Road tool.

Definition at line 121 of file WorldBuilder.h.

◆ m_rulerTool

RulerTool CWorldBuilderApp::m_rulerTool
protected

Ruler tool.

Definition at line 131 of file WorldBuilder.h.

◆ m_scorchTool

ScorchTool CWorldBuilderApp::m_scorchTool
protected

Scorch tool.

Definition at line 129 of file WorldBuilder.h.

◆ m_selTool

Tool* CWorldBuilderApp::m_selTool
protected

Normal tool. If we hit alt, curTool turns to eyedropper.

Definition at line 106 of file WorldBuilder.h.

◆ m_tileTool

TileTool CWorldBuilderApp::m_tileTool
protected

Single texture tile tool.

Definition at line 108 of file WorldBuilder.h.

◆ m_tools

Tool* CWorldBuilderApp::m_tools[NUM_VIEW_TOOLS]
protected

array of tool pointers.

Definition at line 104 of file WorldBuilder.h.

◆ m_waterTool

WaterTool CWorldBuilderApp::m_waterTool
protected

Water tool.

Definition at line 125 of file WorldBuilder.h.

◆ m_waypointTool

WaypointTool CWorldBuilderApp::m_waypointTool
protected

Waypoint tool.

Definition at line 123 of file WorldBuilder.h.


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