The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | List of all members
wb::visitor Class Referenceabstract

Abstract base class for all the visitors (cf GoF Visitor Design Pattern) the whiteboard uses. More...

#include <visitor.hpp>

Inheritance diagram for wb::visitor:
Inheritance graph

Public Member Functions

virtual void visit (move_ptr move)=0
 
virtual void visit (attack_ptr attack)=0
 
virtual void visit (recruit_ptr recruit)=0
 
virtual void visit (recall_ptr recall)=0
 
virtual void visit (suppose_dead_ptr sup_d)=0
 

Protected Member Functions

virtual ~visitor ()
 

Detailed Description

Abstract base class for all the visitors (cf GoF Visitor Design Pattern) the whiteboard uses.

Definition at line 32 of file visitor.hpp.

Constructor & Destructor Documentation

virtual wb::visitor::~visitor ( )
inlineprotectedvirtual

Definition at line 42 of file visitor.hpp.

Member Function Documentation

virtual void wb::visitor::visit ( move_ptr  move)
pure virtual
virtual void wb::visitor::visit ( attack_ptr  attack)
pure virtual
virtual void wb::visitor::visit ( recruit_ptr  recruit)
pure virtual
virtual void wb::visitor::visit ( recall_ptr  recall)
pure virtual
virtual void wb::visitor::visit ( suppose_dead_ptr  sup_d)
pure virtual

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