Crossfire Server, Trunk
Messages.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2020-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 MESSAGES_H
14 #define MESSAGES_H
15 
16 #include "AssetsCollection.h"
17 
18 extern "C" {
19 #include "global.h"
20 #include "compat.h"
21 #include "book.h"
22 }
23 
24 class Messages : public AssetsCollection<GeneralMessage> {
25 
26 public:
27  Messages();
28 
30 
31 protected:
33 
34  virtual GeneralMessage *create(const std::string& name);
35  virtual void destroy(GeneralMessage *item);
36  virtual void replace(GeneralMessage *existing, GeneralMessage *update);
37 
38  virtual void added(GeneralMessage *asset);
39 };
40 
41 #endif /* MESSAGES_H */
42 
global.h
GeneralMessage
Definition: book.h:44
Messages::Messages
Messages()
Definition: Messages.cpp:18
Messages::destroy
virtual void destroy(GeneralMessage *item)
Definition: Messages.cpp:27
Messages
Definition: Messages.h:24
Messages::added
virtual void added(GeneralMessage *asset)
Definition: Messages.cpp:46
Messages::random
GeneralMessage * random()
Definition: Messages.cpp:50
AssetsCollection
Definition: AssetsCollection.h:39
compat.h
AssetsCollection.h
book.h
Messages::replace
virtual void replace(GeneralMessage *existing, GeneralMessage *update)
Definition: Messages.cpp:35
Messages::create
virtual GeneralMessage * create(const std::string &name)
Definition: Messages.cpp:21
item
Definition: item.py:1
give.name
name
Definition: give.py:27
Messages::m_totalChance
int m_totalChance
Definition: Messages.h:32