remove wanring

This commit is contained in:
aozhiwei 2019-07-13 14:17:36 +08:00
parent 0347211284
commit ab0afb3fa5
5 changed files with 12 additions and 3 deletions

View File

@ -2,6 +2,11 @@
#include "aicomponent.h"
AIComponent::~AIComponent()
{
}
void AIComponent::Update(int delta_time)
{

View File

@ -6,5 +6,6 @@ class AIComponent
public:
Entity* owner = nullptr;
virtual ~AIComponent();
virtual void Update(int delta_time);
};

View File

@ -7,6 +7,10 @@
#include "room.h"
#include "metamgr.h"
AndroidAI::~AndroidAI()
{
}
void AndroidAI::Update(int delta_time)
{
Human* hum = (Human*)owner;

View File

@ -17,6 +17,7 @@ class AndroidAI : public AIComponent
int state_elapsed_time = 0;
Human* last_hiter = nullptr;
virtual ~AndroidAI() override;
virtual void Update(int delta_time) override;
private:

View File

@ -148,12 +148,10 @@ namespace MetaData
}
}
assert(itemids.size() == nums.size());
#if 1
std::vector<int> item_lvs;
for (auto& itr : itemids) {
for (size_t ii = 0; ii < itemids.size(); ++ii) {
item_lvs.push_back(1);
}
#endif
if (this->i->type() == 1) {
auto item_tuple = std::make_tuple(
itemids,