mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 14:31:17 +00:00
Whiteboard: comments.
This commit is contained in:
parent
84527ff9ef
commit
22620140ee
@ -26,7 +26,7 @@ namespace wb {
|
||||
class visitor;
|
||||
|
||||
/**
|
||||
* Superclass for all the whiteboard planned actions.
|
||||
* Abstract base class for all the whiteboard planned actions.
|
||||
*/
|
||||
class action
|
||||
{
|
||||
@ -49,9 +49,7 @@ public:
|
||||
/** Gets called by display when drawing a hex, to allow actions to draw to the screen. */
|
||||
virtual void draw_hex(const map_location& hex) = 0;
|
||||
|
||||
/**
|
||||
* Indicates whether this hex is the preferred hex to draw the numbering for this action.
|
||||
*/
|
||||
/** Indicates whether this hex is the preferred hex to draw the numbering for this action. */
|
||||
virtual bool is_numbering_hex(const map_location& hex) const = 0;
|
||||
|
||||
/** Return the unit targeted by this action. Null if unit doesn't exist. */
|
||||
|
@ -26,6 +26,10 @@
|
||||
namespace wb
|
||||
{
|
||||
|
||||
/**
|
||||
* Abstract base class for all the visitors (cf GoF Visitor Design Pattern)
|
||||
* the whiteboard uses.
|
||||
*/
|
||||
class visitor : private boost::noncopyable
|
||||
{
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user