The Battle for Wesnoth  1.15.2+dev
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 31 of file visitor.hpp.

Constructor & Destructor Documentation

◆ ~visitor()

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

Definition at line 41 of file visitor.hpp.

Member Function Documentation

◆ visit() [1/5]

virtual void wb::visitor::visit ( move_ptr  move)
pure virtual

◆ visit() [2/5]

virtual void wb::visitor::visit ( attack_ptr  attack)
pure virtual

◆ visit() [3/5]

virtual void wb::visitor::visit ( recruit_ptr  recruit)
pure virtual

◆ visit() [4/5]

virtual void wb::visitor::visit ( recall_ptr  recall)
pure virtual

◆ visit() [5/5]

virtual void wb::visitor::visit ( suppose_dead_ptr  sup_d)
pure virtual

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