#include <SelectionXlat.h>
Inherits GameMessageTranslator.
Public Member Functions | |
| SelectionTranslator () | |
| ~SelectionTranslator () | |
| virtual GameMessageDisposition | translateGameMessage (const GameMessage *msg) |
| void | setDragSelecting (Bool dragSelect) |
| void | setLeftMouseButton (Bool state) |
Friends | |
| Bool | selectFriendsWrapper (Drawable *draw, void *userData) |
| Bool | killThemKillThemAllWrapper (Drawable *draw, void *userData) |
Definition at line 41 of file SelectionXlat.h.
| SelectionTranslator::SelectionTranslator | ( | ) |
Definition at line 267 of file SelectionXlat.cpp.
| SelectionTranslator::~SelectionTranslator | ( | ) |
Definition at line 293 of file SelectionXlat.cpp.
| void SelectionTranslator::setDragSelecting | ( | Bool | dragSelect | ) |
Definition at line 1352 of file SelectionXlat.cpp.
| void SelectionTranslator::setLeftMouseButton | ( | Bool | state | ) |
Definition at line 1360 of file SelectionXlat.cpp.
|
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.
Definition at line 116 of file SelectionXlat.cpp.
Definition at line 110 of file SelectionXlat.cpp.