Crossfire Server, Trunk
Quests.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2021 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef COMMON_QUESTS_H
14 #define COMMON_QUESTS_H
15 
16 #include "quest.h"
17 #include "AssetsCollection.h"
18 
19 class Quests : public AssetsCollection<quest_definition> {
20 public:
21  Quests();
22  virtual ~Quests();
23 
24  size_t visibleCount() const { return visibleQuests; }
25 
26 protected:
27  virtual void replace(quest_definition *existing, quest_definition *update) override;
28  virtual void added(quest_definition *quest) override;
29 
30 private:
31  size_t visibleQuests;
32 };
33 
34 #endif /* QUESTS_H */
35 
Quests::replace
virtual void replace(quest_definition *existing, quest_definition *update) override
Definition: Quests.cpp:31
Quests::visibleCount
size_t visibleCount() const
Definition: Quests.h:24
quest
Definition: quest.py:1
AssetsCollection
Definition: AssetsCollection.h:55
Quests
Definition: Quests.h:19
Quests::Quests
Quests()
Definition: Quests.cpp:25
AssetsCollection.h
quest.h
Quests::visibleQuests
size_t visibleQuests
Definition: Quests.h:31
quest_definition
Definition: quest.h:37
Quests::added
virtual void added(quest_definition *quest) override
Definition: Quests.cpp:43
Quests::~Quests
virtual ~Quests()
Definition: Quests.cpp:28