Crossfire Server  1.75.0
book.h
Go to the documentation of this file.
1 
5 #ifndef BOOK_H
6 #define BOOK_H
7 
16 #define BOOK_BUF HUGE_BUF-10
17 
23 #define BASE_BOOK_BUF 750
24 
31 #define BOOKSIZE(xyz) BASE_BOOK_BUF+((xyz)->weight/8) > BOOK_BUF ? \
32  BOOK_BUF : BASE_BOOK_BUF+((xyz)->weight/8);
33 
37  uint8_t message_type;
38  uint8_t message_subtype;
39 };
40 
45  int chance;
51  const Face *face;
52 };
53 
54 #endif /* BOOK_H */
sstring title
The message's title, only used for knowledge.
Definition: book.h:48
New face structure - this enforces the notion that data is face by face only - you can not change the...
Definition: face.h:14
uint8_t message_type
Message type to be sent to the client.
Definition: book.h:37
sstring identifier
Message identifier, can be NULL.
Definition: book.h:47
const Face * face
Face the message displays at in the knowledge dialog, NULL if no face defined.
Definition: book.h:51
int chance
Relative chance of the message appearing randomly.
Definition: book.h:45
Struct to store the message_type and message_subtype for signs and books used by the player...
Definition: book.h:36
sstring quest_code
Optional quest code and state this message will start.
Definition: book.h:50
uint8_t message_subtype
Message subtype to be sent to the client.
Definition: book.h:38
One general message, from the lib/messages file.
Definition: book.h:44
const char * sstring
Definition: sstring.h:2
sstring message
The message's body.
Definition: book.h:49