22 #ifndef NUVIE_PORTRAIT_PORTRAIT_H 23 #define NUVIE_PORTRAIT_PORTRAIT_H 33 #define PORTRAIT_WIDTH 56 34 #define PORTRAIT_HEIGHT 64 36 #define NO_PORTRAIT_FOUND 255 38 Portrait *newPortrait(nuvie_game_t gametype,
const Configuration *cfg);
44 uint8 avatar_portrait_num;
52 virtual bool init() = 0;
53 virtual bool load(
NuvieIO *objlist) = 0;
54 virtual unsigned char *get_portrait_data(
Actor *actor) = 0;
56 uint8 get_portrait_width()
const {
59 uint8 get_portrait_height()
const {
63 bool has_portrait(
Actor *actor)
const {
64 return (get_portrait_num(actor) != NO_PORTRAIT_FOUND);
67 uint8 get_avatar_portrait_num()
const;
71 unsigned char *get_wou_portrait_data(
U6Lib_n *lib, uint8 num);
75 virtual uint8 get_portrait_num(
Actor *actor)
const = 0;
Definition: portrait.h:40
Definition: configuration.h:61
Definition: detection.h:27
Definition: u6_lib_n.h:46
Definition: nuvie_io.h:32