blob: a085dcae2111dd3c61ea081f0e8b061278a4df2e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/**
* @file
* @brief Tracking permaallies granted by Yred and Beogh.
**/
#ifndef GOD_COMPANION_H
#define GOD_COMPANION_H
#include "monster.h"
#include "mon-transit.h"
#include <map>
#include <list>
struct companion
{
follower mons;
level_id level;
int timestamp;
companion() : mons(), level() { }
companion(const monster& m);
};
extern map<mid_t, companion> companion_list;
void init_companions();
void add_companion(monster* mons);
void remove_companion(monster* mons);
void remove_enslaved_soul_companion();
void remove_all_companions(god_type god);
void move_companion_to(const monster* mons, const level_id lid);
void update_companions();
void list_companions();
bool companion_is_elsewhere(mid_t mid, bool must_exist = false);
void populate_offlevel_recall_list(vector<pair<mid_t, int> > &recall_list);
bool recall_offlevel_ally(mid_t mid);
void wizard_list_companions();
#if TAG_MAJOR_VERSION == 34
void fixup_bad_companions();
#endif
#endif
|