ManaPlus
Public Member Functions
AvatarListModel Class Referenceabstract

#include <avatarlistmodel.h>

Inheritance diagram for AvatarListModel:
ListModel BeingsListModel Guild Party

Public Member Functions

 AvatarListModel ()
 
virtual AvatargetAvatarAt (const int i)=0
 
std::string getElementAt (int i)
 
- Public Member Functions inherited from ListModel
 ListModel ()
 
virtual ~ListModel ()
 
virtual int getNumberOfElements ()=0
 

Detailed Description

Definition at line 30 of file avatarlistmodel.h.

Constructor & Destructor Documentation

◆ AvatarListModel()

AvatarListModel::AvatarListModel ( )
inline

Definition at line 33 of file avatarlistmodel.h.

33  :
34  ListModel()
35  { }
ListModel()
Definition: listmodel.h:82

Member Function Documentation

◆ getAvatarAt()

virtual Avatar* AvatarListModel::getAvatarAt ( const int  i)
pure virtual

◆ getElementAt()

std::string AvatarListModel::getElementAt ( int  i)
inlinevirtual

Gets an element at a certain index in the list.

Parameters
iAn index in the list.
Returns
An element as a string at the a certain index.

Implements ListModel.

Definition at line 41 of file avatarlistmodel.h.

42  { return getAvatarAt(i)->getName(); }
virtual Avatar * getAvatarAt(const int i)=0
std::string getName() const
Definition: avatar.h:53

References getAvatarAt(), and Avatar::getName().


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