Crossfire Server, Trunk
Faces.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 FACES_H
14 #define FACES_H
15 
16 #include "AssetsCollection.h"
17 extern "C" {
18 #include "global.h"
19 }
20 
21 class Faces : public AssetsCollection<Face> {
22 public:
23  Faces();
24 
25  const Face *findById(uint16_t id);
26 
27  int checksum() const { return m_checksum; }
28 
29 protected:
31 
32  virtual Face *create(const std::string& name);
33  virtual void destroy(Face *item);
34  virtual void replace(Face *existing, Face *update);
35  virtual void added(Face *face);
36 };
37 
38 #endif /* FACES_H */
Face
Definition: face.h:14
global.h
Faces::checksum
int checksum() const
Definition: Faces.h:27
Faces::findById
const Face * findById(uint16_t id)
Definition: Faces.cpp:43
Faces::destroy
virtual void destroy(Face *item)
Definition: Faces.cpp:29
Faces::Faces
Faces()
Definition: Faces.cpp:16
Faces::replace
virtual void replace(Face *existing, Face *update)
Definition: Faces.cpp:34
AssetsCollection
Definition: AssetsCollection.h:39
Faces::added
virtual void added(Face *face)
Definition: Faces.cpp:50
Faces::create
virtual Face * create(const std::string &name)
Definition: Faces.cpp:22
AssetsCollection.h
Faces
Definition: Faces.h:21
item
Definition: item.py:1
Faces::m_checksum
int m_checksum
Definition: Faces.h:30
give.name
name
Definition: give.py:27