1
This commit is contained in:
parent
773c8daf77
commit
d130f99cfd
@ -62,9 +62,9 @@ aux_source_directory(../../third_party/recastnavigation/DetourTileCache/Source
|
|||||||
SRC_LIST
|
SRC_LIST
|
||||||
)
|
)
|
||||||
|
|
||||||
aux_source_directory(behaviac_generated/types/internal
|
#aux_source_directory(behaviac_generated/types/internal
|
||||||
SRC_LIST
|
# SRC_LIST
|
||||||
)
|
#)
|
||||||
|
|
||||||
aux_source_directory(mtb
|
aux_source_directory(mtb
|
||||||
SRC_LIST
|
SRC_LIST
|
||||||
@ -74,6 +74,10 @@ aux_source_directory(mt
|
|||||||
SRC_LIST
|
SRC_LIST
|
||||||
)
|
)
|
||||||
|
|
||||||
|
aux_source_directory(buff
|
||||||
|
SRC_LIST
|
||||||
|
)
|
||||||
|
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND touch -a cs_proto.pb.h
|
COMMAND touch -a cs_proto.pb.h
|
||||||
COMMAND touch -a cs_proto.pb.cc
|
COMMAND touch -a cs_proto.pb.cc
|
||||||
|
@ -17,21 +17,27 @@ Android::Android():Human()
|
|||||||
#if 0
|
#if 0
|
||||||
++PerfMonitor::Instance()->entity_num[ET_Android];
|
++PerfMonitor::Instance()->entity_num[ET_Android];
|
||||||
#endif
|
#endif
|
||||||
|
#if 0
|
||||||
agent_ = behaviac::Agent::Create<AndroidAgent>();
|
agent_ = behaviac::Agent::Create<AndroidAgent>();
|
||||||
if (!agent_) {
|
if (!agent_) {
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#if 0
|
||||||
agent_->SetOwner(this);
|
agent_->SetOwner(this);
|
||||||
f8::BtMgr::Instance()->BtLoad(agent_, "android_pvp");
|
f8::BtMgr::Instance()->BtLoad(agent_, "android_pvp");
|
||||||
f8::BtMgr::Instance()->BtSetCurrent(agent_, "android_pvp");
|
f8::BtMgr::Instance()->BtSetCurrent(agent_, "android_pvp");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
Android::~Android()
|
Android::~Android()
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
if (agent_) {
|
if (agent_) {
|
||||||
f8::BtMgr::Instance()->BtDestory(agent_);
|
f8::BtMgr::Instance()->BtDestory(agent_);
|
||||||
agent_ = nullptr;
|
agent_ = nullptr;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#if 0
|
#if 0
|
||||||
--PerfMonitor::Instance()->entity_num[ET_Android];
|
--PerfMonitor::Instance()->entity_num[ET_Android];
|
||||||
#endif
|
#endif
|
||||||
@ -107,7 +113,9 @@ void Android::InternalUpdate(int delta_time)
|
|||||||
#endif
|
#endif
|
||||||
Global::Instance()->verify_set_pos = 0;
|
Global::Instance()->verify_set_pos = 0;
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
agent_->Exec();
|
agent_->Exec();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Android::GiveEquip()
|
void Android::GiveEquip()
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include "precompile.h"
|
#include "precompile.h"
|
||||||
|
#if 0
|
||||||
#include "android_agent.h"
|
#include "android_agent.h"
|
||||||
#include "android.h"
|
#include "android.h"
|
||||||
#include "room.h"
|
#include "room.h"
|
||||||
@ -306,3 +306,4 @@ behaviac::EBTStatus AndroidAgent::DoPursuit()
|
|||||||
"CoPursuit"
|
"CoPursuit"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "base_agent.h"
|
#include "base_agent.h"
|
||||||
|
#if 0
|
||||||
class Android;
|
class Android;
|
||||||
class AndroidAgent : public BaseAgent
|
class AndroidAgent : public BaseAgent
|
||||||
{
|
{
|
||||||
@ -23,3 +23,4 @@ public:
|
|||||||
private:
|
private:
|
||||||
Android* owner_ = nullptr;
|
Android* owner_ = nullptr;
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include "precompile.h"
|
#include "precompile.h"
|
||||||
|
#if 0
|
||||||
#include "base_agent.h"
|
#include "base_agent.h"
|
||||||
#include "room.h"
|
#include "room.h"
|
||||||
#include "creature.h"
|
#include "creature.h"
|
||||||
@ -173,3 +173,4 @@ behaviac::EBTStatus BaseAgent::CoAttackTarget(int target_id)
|
|||||||
"CoAttackTarget"
|
"CoAttackTarget"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#if 0
|
||||||
#include "behaviac/behaviac.h"
|
#include "behaviac/behaviac.h"
|
||||||
#include "behaviac_customized_types.h"
|
#include "behaviac_customized_types.h"
|
||||||
|
|
||||||
@ -43,3 +44,4 @@ protected:
|
|||||||
private:
|
private:
|
||||||
Creature* owner_ = nullptr;
|
Creature* owner_ = nullptr;
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user