Crossfire Server, Trunk
R22010
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 700
24
31
#define BOOKSIZE(xyz) BASE_BOOK_BUF+((xyz)->weight/10) > BOOK_BUF ? \
32
BOOK_BUF : BASE_BOOK_BUF+((xyz)->weight/10);
33
36
typedef
struct
{
37
uint8_t
message_type
;
38
uint8_t
message_subtype
;
39
}
readable_message_type
;
40
44
typedef
struct
GeneralMessage
{
45
int
chance
;
47
sstring
identifier
;
48
sstring
title
;
49
sstring
message
;
50
sstring
quest_code
;
51
const
Face
*
face
;
52
}
GeneralMessage
;
53
54
#endif
/* BOOK_H */
uint8_t
unsigned char uint8_t
Definition:
win32.h:161
GeneralMessage::title
sstring title
Definition:
book.h:48
Face
Definition:
face.h:14
readable_message_type::message_type
uint8_t message_type
Definition:
book.h:37
GeneralMessage::identifier
sstring identifier
Definition:
book.h:47
GeneralMessage::face
const Face * face
Definition:
book.h:51
GeneralMessage::chance
int chance
Definition:
book.h:45
readable_message_type
Definition:
book.h:36
GeneralMessage::quest_code
sstring quest_code
Definition:
book.h:50
sstring
const char * sstring
Definition:
global.h:40
GeneralMessage
struct GeneralMessage GeneralMessage
readable_message_type::message_subtype
uint8_t message_subtype
Definition:
book.h:38
GeneralMessage
Definition:
book.h:44
GeneralMessage::message
sstring message
Definition:
book.h:49
crossfire-code
server
trunk
include
book.h
Generated by
1.8.13