DummySelectionObject

A SelectionObject for that does not need an IDrawObject.  Most types of selection, for tiles, settlements, knights, etc., don’t actually need a separate draw object to handle the selection possibilities, since the IGameObject::Select flag suffices to set them as selectable.  The class DummySelectionObject provides a way for the Model to still signal to the View that a selection needs to happen, but that the visual representation of the selection will be taken care of by the objects themselves.  The class <DrawDummySelectionObject> is the IDrawObject-derived class that “draws” the DummySelectionObject (by doing nothing).

Derived From

SelectionObject

Project

RulesCore

Include

DummySelectionObject.h

Summary
A SelectionObject for that does not need an IDrawObject.
The DummySelectionObject constructor.
Clones the HexSelectionObject.
Resets the class name of the DummySelectionObject.

Public

Summary
The DummySelectionObject constructor.
Clones the HexSelectionObject.
Resets the class name of the DummySelectionObject.

Constructors

DummySelectionObject

DummySelectionObject(const wxString &rule)

The DummySelectionObject constructor.  Stores the given rule name.  See SelectionObject for details.

Virtual Functions

Clone

virtual IGameObject *Clone()

Clones the HexSelectionObject.  Unused.

Returns

A NULL pointer.

name

virtual wxString name()

Resets the class name of the DummySelectionObject.

Returns

A const reference to a string containing the class name of the DummySelectionObject.

The base class for all selection-related IGameObjects.
The interface for objects that are drawn on screen.
DummySelectionObject(const wxString &rule)
The DummySelectionObject constructor.
virtual IGameObject *Clone()
Clones the HexSelectionObject.
virtual wxString name()
Resets the class name of the DummySelectionObject.
RulesCore is the HOSS of Cities3D.