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

#include <SelectionXlat.h>

Inherits GameMessageTranslator.

Public Member Functions

 SelectionTranslator ()
 
 ~SelectionTranslator ()
 
virtual GameMessageDisposition translateGameMessage (const GameMessage *msg)
 
void setDragSelecting (Bool dragSelect)
 
void setLeftMouseButton (Bool state)
 
- Public Member Functions inherited from GameMessageTranslator
virtual ~GameMessageTranslator ()
 

Friends

Bool selectFriendsWrapper (Drawable *draw, void *userData)
 
Bool killThemKillThemAllWrapper (Drawable *draw, void *userData)
 

Detailed Description

Definition at line 41 of file SelectionXlat.h.

Constructor & Destructor Documentation

◆ SelectionTranslator()

SelectionTranslator::SelectionTranslator ( )

Definition at line 267 of file SelectionXlat.cpp.

◆ ~SelectionTranslator()

SelectionTranslator::~SelectionTranslator ( )

Definition at line 293 of file SelectionXlat.cpp.

Member Function Documentation

◆ setDragSelecting()

void SelectionTranslator::setDragSelecting ( Bool dragSelect)

Definition at line 1352 of file SelectionXlat.cpp.

◆ setLeftMouseButton()

void SelectionTranslator::setLeftMouseButton ( Bool state)

Definition at line 1360 of file SelectionXlat.cpp.

◆ translateGameMessage()

GameMessageDisposition SelectionTranslator::translateGameMessage ( const GameMessage * msg)
virtual

The SelectionTranslator is responsible for all selection semantics, including click selection, area drag selection, right-click de-selection, and CTRL-key group selection. NOTE: This handler changes the event semantics for mouse buttons from LEFT_DOWN -> LEFT_UP to LEFT_DOWN -> { LEFT_UP, AREA_SELECTION, or DRAWABLE_PICKED }

note we are putting in a drawable id

Implements GameMessageTranslator.

Definition at line 377 of file SelectionXlat.cpp.

Friends And Related Symbol Documentation

◆ killThemKillThemAllWrapper

Bool killThemKillThemAllWrapper ( Drawable * draw,
void * userData )
friend

Definition at line 116 of file SelectionXlat.cpp.

◆ selectFriendsWrapper

Bool selectFriendsWrapper ( Drawable * draw,
void * userData )
friend

Definition at line 110 of file SelectionXlat.cpp.


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