OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
aistate.cpp
Go to the documentation of this file.
1
#include "
aistate.h
"
2
3
#include "
game/gamescript.h
"
4
5
AiState::AiState
(
GameScript
& owner,
size_t
id
) {
6
auto
* fn = owner.
findSymbol
(
id
);
7
if
(fn !=
nullptr
) {
8
mname = fn->name().c_str();
9
10
funcIni
= id;
11
funcLoop
= owner.
findSymbolIndex
(fn->name() +
"_Loop"
);
12
funcEnd
= owner.
findSymbolIndex
(fn->name() +
"_End"
);
13
}
else
{
14
mname =
""
;
15
16
funcIni
= id;
17
funcLoop
= uint32_t(-1);
18
funcEnd
= uint32_t(-1);
19
}
20
}
aistate.h
AiState::funcIni
size_t funcIni
Definition
aistate.h:11
AiState::AiState
AiState(GameScript &owner, size_t id)
Definition
aistate.cpp:5
AiState::funcLoop
size_t funcLoop
Definition
aistate.h:12
AiState::funcEnd
size_t funcEnd
Definition
aistate.h:13
GameScript
Definition
gamescript.h:45
GameScript::findSymbolIndex
size_t findSymbolIndex(std::string_view s)
Definition
gamescript.cpp:829
GameScript::findSymbol
zenkit::DaedalusSymbol * findSymbol(std::string_view s)
Definition
gamescript.cpp:821
gamescript.h
game
game
aistate.cpp
Generated by
1.9.8