1
This commit is contained in:
parent
6242574bfd
commit
b41e51cf0b
@ -8,6 +8,7 @@ class AIComponent
|
||||
|
||||
virtual ~AIComponent();
|
||||
virtual void Update(int delta_time);
|
||||
virtual float GetAttackRate() { return 0;};
|
||||
void SetAiLevel(int ai_level);
|
||||
int GetAiLevel();
|
||||
|
||||
|
@ -8,11 +8,7 @@
|
||||
|
||||
Android::Android():Human()
|
||||
{
|
||||
#if 1
|
||||
ai = new AndroidNewAI;
|
||||
#else
|
||||
ai = new AndroidAI;
|
||||
#endif
|
||||
ai->owner = this;
|
||||
#if 0
|
||||
++PerfMonitor::Instance()->entity_num[ET_Android];
|
||||
|
@ -7,16 +7,11 @@ namespace MetaData
|
||||
class Robot;
|
||||
}
|
||||
|
||||
class AndroidAI;
|
||||
class AndroidNewAI;
|
||||
class AIComponent;
|
||||
class Android : public Human
|
||||
{
|
||||
public:
|
||||
#if 1
|
||||
AndroidNewAI* ai = nullptr;
|
||||
#else
|
||||
AndroidAI* ai = nullptr;
|
||||
#endif
|
||||
AIComponent* ai = nullptr;
|
||||
MetaData::Robot* robot_meta = nullptr;
|
||||
|
||||
virtual ~Android() override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user