This commit is contained in:
aozhiwei 2023-04-01 14:35:57 +08:00
parent 55610233d4
commit 50e60fd57d
2 changed files with 6 additions and 8 deletions

View File

@ -8,6 +8,7 @@
#include "mt/AirDrop.h" #include "mt/AirDrop.h"
#include "mt/MapThing.h" #include "mt/MapThing.h"
#include "mt/Hero.h"
AirDrop::AirDrop(Room* room) AirDrop::AirDrop(Room* room)
{ {
@ -79,17 +80,13 @@ void AirDrop::Exec(int appear_time, int box_id, int airdrop_id)
}, },
&room_->xtimer_attacher_); &room_->xtimer_attacher_);
++airdrop_times_; ++airdrop_times_;
#if 0
ShuaMon(box_pos, ShuaMon(box_pos,
thing_meta->airdrop_mon_list, thing_meta->_airdrop_mon_list,
std::max(thing_meta->width(), thing_meta->height())); std::max(thing_meta->width(), thing_meta->height()));
#endif
} }
} }
#if 0 void AirDrop::ShuaMon(const glm::vec3& center, const std::vector<int>& airdrop_mon_list, float radius)
void Room::ShuaMon(const glm::vec3& center, std::vector<int>& airdrop_mon_list, float radius)
{ {
int last_hero_idx = 0; int last_hero_idx = 0;
for (int hero_id : airdrop_mon_list) { for (int hero_id : airdrop_mon_list) {
@ -149,5 +146,3 @@ void Room::ShuaMon(const glm::vec3& center, std::vector<int>& airdrop_mon_list,
}//end if }//end if
}//end for hero_id }//end for hero_id
} }
#endif

View File

@ -11,6 +11,9 @@ class AirDrop
private: private:
void Exec(int appear_time, int box_id, int airdrop_id); void Exec(int appear_time, int box_id, int airdrop_id);
void ShuaMon(const glm::vec3& center,
const std::vector<int>& airdrop_mon_list,
float radius);
private: private:
Room* room_ = nullptr; Room* room_ = nullptr;