Crossfire Server, Trunk
Treasures.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 TREASURES_H
14 #define TREASURES_H
15 
16 #include "AssetsCollection.h"
17 
18 extern "C" {
19 #include "global.h"
20 #include "treasure.h"
21 }
22 
23 class Treasures : public AssetsCollection<treasurelist> {
24 protected:
25  virtual treasurelist *create(const std::string& name);
26  virtual void destroy(treasurelist *item);
27  virtual void replace(treasurelist *existing, treasurelist *update);
28 };
29 
30 #endif /* TREASURES_H */
31 
global.h
Treasures
Definition: Treasures.h:23
AssetsCollection
Definition: AssetsCollection.h:39
AssetsCollection.h
treasure.h
Treasures::replace
virtual void replace(treasurelist *existing, treasurelist *update)
Definition: Treasures.cpp:29
Treasures::destroy
virtual void destroy(treasurelist *item)
Definition: Treasures.cpp:21
item
Definition: item.py:1
Treasures::create
virtual treasurelist * create(const std::string &name)
Definition: Treasures.cpp:15
treasureliststruct
Definition: treasure.h:82
give.name
name
Definition: give.py:27