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 #include "global.h"
18 
19 class Faces : public AssetsCollection<Face> {
20 public:
21  Faces();
22 
23  const Face *findById(uint16_t id);
24 
25  int checksum() const { return m_checksum; }
26 
27 protected:
29 
30  virtual void replace(Face *existing, Face *update) override;
31  virtual void added(Face *face) override;
32 };
33 
34 #endif /* FACES_H */
Face
Definition: face.h:14
global.h
Faces::added
virtual void added(Face *face) override
Definition: Faces.cpp:51
Faces::checksum
int checksum() const
Definition: Faces.h:25
Faces::findById
const Face * findById(uint16_t id)
Definition: Faces.cpp:44
Faces::Faces
Faces()
Definition: Faces.cpp:29
AssetsCollection
Definition: AssetsCollection.h:55
Faces::replace
virtual void replace(Face *existing, Face *update) override
Definition: Faces.cpp:35
AssetsCollection.h
Faces
Definition: Faces.h:19
Faces::m_checksum
int m_checksum
Definition: Faces.h:28