Crossfire Server, Trunk
|
#include <Quests.h>
Public Member Functions | |
Quests () | |
size_t | visibleCount () const |
virtual | ~Quests () |
Public Member Functions inherited from AssetsCollection< quest_definition > | |
void | clear () |
size_t | count () const |
quest_definition * | define (const std::string &name, quest_definition *asset) |
void | each (std::function< void(quest_definition *)> op) |
quest_definition * | find (const std::string &name) |
quest_definition * | first (std::function< bool(const quest_definition *)> op) |
quest_definition * | get (const std::string &name) |
std::vector< std::string > | keys () const |
quest_definition * | next (quest_definition *current) |
const std::set< std::string > & | undefined () const |
virtual | ~AssetsCollection () |
Protected Member Functions | |
virtual void | added (quest_definition *quest) override |
virtual void | replace (quest_definition *existing, quest_definition *update) override |
Private Attributes | |
size_t | visibleQuests |
Additional Inherited Members | |
Protected Attributes inherited from AssetsCollection< quest_definition > | |
std::unordered_map< std::string, quest_definition * > | m_assets |
std::set< std::string > | m_undefined |
Quests::Quests | ( | ) |
Definition at line 25 of file Quests.cpp.
|
virtual |
Definition at line 28 of file Quests.cpp.
|
overrideprotectedvirtual |
An asset was either referenced (but undefined) or defined.
Reimplemented from AssetsCollection< quest_definition >.
Definition at line 43 of file Quests.cpp.
References AssetsCollection< quest_definition >::m_assets, and visibleQuests.
|
overrideprotectedvirtual |
Replace an asset by an updated version.
existing | asset to be updated. |
update | new version of the asset, which must be destroyed. |
Implements AssetsCollection< quest_definition >.
Definition at line 31 of file Quests.cpp.
References quest_clear(), quest_definition::quest_is_system, and visibleQuests.
|
inline |
Definition at line 24 of file Quests.h.
References visibleQuests.
Referenced by quests_count().
|
private |
Definition at line 31 of file Quests.h.
Referenced by added(), replace(), and visibleCount().