MCPcopy Create free account
hub / github.com/diasurgical/devilution / InitLevelMonsters

Function InitLevelMonsters

Source/monster.cpp:126–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void InitLevelMonsters()
127{
128 int i;
129
130 nummtypes = 0;
131 monstimgtot = 0;
132 MissileFileFlag = 0;
133
134 for (i = 0; i < MAX_LVLMTYPES; i++) {
135 Monsters[i].mPlaceFlags = 0;
136 }
137
138 ClrAllMonsters();
139 nummonsters = 0;
140 totalmonsters = MAXMONSTERS;
141
142 for (i = 0; i < MAXMONSTERS; i++) {
143 monstactive[i] = i;
144 }
145
146 uniquetrans = 0;
147}
148
149int AddMonsterType(int type, int placeflag)
150{

Callers 1

LoadGameLevelFunction · 0.85

Calls 1

ClrAllMonstersFunction · 0.85

Tested by

no test coverage detected