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
#include "
global.h
"
19
#include "
compat.h
"
20
#include "
book.h
"
21
22
class
Messages
:
public
AssetsCollection
<GeneralMessage> {
23
24
public
:
25
Messages
();
26
27
GeneralMessage
*
random
();
28
29
protected
:
30
int
m_totalChance
;
31
32
virtual
void
replace
(
GeneralMessage
*existing,
GeneralMessage
*update)
override
;
33
virtual
void
added
(
GeneralMessage
*asset)
override
;
34
};
35
36
#endif
/* MESSAGES_H */
37
global.h
GeneralMessage
Definition:
book.h:44
Messages::Messages
Messages()
Definition:
Messages.cpp:32
Messages
Definition:
Messages.h:22
Messages::added
virtual void added(GeneralMessage *asset) override
Definition:
Messages.cpp:46
Messages::replace
virtual void replace(GeneralMessage *existing, GeneralMessage *update) override
Definition:
Messages.cpp:35
Messages::random
GeneralMessage * random()
Definition:
Messages.cpp:50
AssetsCollection
Definition:
AssetsCollection.h:55
compat.h
AssetsCollection.h
book.h
Messages::m_totalChance
int m_totalChance
Definition:
Messages.h:30
crossfire-crossfire-server
include
Messages.h
Generated by
1.8.17