ai: Add name property to AICharacter class

Closes #1205
This commit is contained in:
rdb 2021-11-16 15:09:44 +01:00
parent ab6d3b2e15
commit b6e5217154
2 changed files with 8 additions and 0 deletions

View File

@ -117,6 +117,10 @@ NodePath AICharacter::get_char_render() {
return _window_render;
}
std::string AICharacter::get_name() {
return _name;
}
void AICharacter::set_pf_guide(bool pf_guide) {
_pf_guide = pf_guide;
}

View File

@ -46,6 +46,8 @@ class EXPCL_PANDAAI AICharacter : public ReferenceCount {
void set_char_render(NodePath render);
NodePath get_char_render();
std::string get_name();
PUBLISHED:
double get_mass();
void set_mass(double m);
@ -65,6 +67,8 @@ PUBLISHED:
explicit AICharacter(std::string model_name, NodePath model_np, double mass, double movt_force, double max_force);
~AICharacter();
MAKE_PROPERTY(name, get_name);
};
#endif