3 bool read_flag(unsigned flags
, unsigned offset
)
5 return ((flags
>> offset
) & 1) != 0;
8 bool monster_data::is_minion()
13 bool monster_data::is_champion()
18 bool monster_data::is_boss()
23 bool monster_data::get_flag(unsigned offset
)
25 return read_flag(flags
, offset
);
28 bool monster_statistics::is_npc()
30 //use interact flag, haha.
31 return read_flag(flags
, 9);
34 std::string
item_text::get_code() const
36 return std::string(code
, 3);
39 std::string
roster_unit::get_name()
43 for(std::size_t i
= 0; i
< sizeof(name
); i
++)
45 char letter
= name
[i
];
48 output
.push_back(letter
);