API Documentation
Loading...
Searching...
No Matches
BasicUnitOption Class Reference

#include <UnitManager.h>

Inheritance diagram for BasicUnitOption:
[legend]
Collaboration diagram for BasicUnitOption:
[legend]

Public Member Functions

 BasicUnitOption (const ConstPointer< Unit > &unit, const TranslatedString &custom_title=TranslatedString())
 
virtual TranslatedString title () const final override
 
virtual bool hasMemberUnit (const ConstPointer< Unit > &unit) const final override
 
virtual ConstPointer< Unitunit () const final override
 
virtual Buffer< ConstPointer< UnitOption > > subOptions () const final override
 
virtual Buffer< ConstPointer< UnitOption > > & editSubOptions ()
 
- Public Member Functions inherited from UnitOption
 UnitOption (const String &id, const TranslatedString &name)
 
virtual ~UnitOption ()
 
virtual ConstPointer< Unitunit (const ConstPointer< Unit > &) const
 

Public Attributes

ConstPointer< Unitbase_unit
 
TranslatedString custom_title
 
- Public Attributes inherited from UnitOption
TranslatedString name
 
String id
 

Protected Attributes

Buffer< ConstPointer< UnitOption > > m_sub_options
 

Constructor & Destructor Documentation

◆ BasicUnitOption()

BasicUnitOption ( const ConstPointer< Unit > & unit,
const TranslatedString & custom_title = TranslatedString() )
inline

Member Function Documentation

◆ editSubOptions()

virtual Buffer< ConstPointer< UnitOption > > & editSubOptions ( )
inlinevirtual

◆ hasMemberUnit()

bool hasMemberUnit ( const ConstPointer< Unit > & unit) const
finaloverridevirtual

Implements UnitOption.

◆ subOptions()

virtual Buffer< ConstPointer< UnitOption > > subOptions ( ) const
inlinefinaloverridevirtual

Reimplemented from UnitOption.

◆ title()

TranslatedString title ( ) const
finaloverridevirtual

Reimplemented from UnitOption.

◆ unit()

virtual ConstPointer< Unit > unit ( ) const
inlinefinaloverridevirtual

Implements UnitOption.

Member Data Documentation

◆ base_unit

ConstPointer<Unit> base_unit

◆ custom_title

TranslatedString custom_title

◆ m_sub_options

Buffer<ConstPointer<UnitOption> > m_sub_options
protected

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