1
This commit is contained in:
parent
55610233d4
commit
50e60fd57d
@ -8,6 +8,7 @@
|
||||
|
||||
#include "mt/AirDrop.h"
|
||||
#include "mt/MapThing.h"
|
||||
#include "mt/Hero.h"
|
||||
|
||||
AirDrop::AirDrop(Room* room)
|
||||
{
|
||||
@ -79,17 +80,13 @@ void AirDrop::Exec(int appear_time, int box_id, int airdrop_id)
|
||||
},
|
||||
&room_->xtimer_attacher_);
|
||||
++airdrop_times_;
|
||||
#if 0
|
||||
ShuaMon(box_pos,
|
||||
thing_meta->airdrop_mon_list,
|
||||
thing_meta->_airdrop_mon_list,
|
||||
std::max(thing_meta->width(), thing_meta->height()));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
void Room::ShuaMon(const glm::vec3& center, std::vector<int>& airdrop_mon_list, float radius)
|
||||
void AirDrop::ShuaMon(const glm::vec3& center, const std::vector<int>& airdrop_mon_list, float radius)
|
||||
{
|
||||
int last_hero_idx = 0;
|
||||
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 for hero_id
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -11,6 +11,9 @@ class AirDrop
|
||||
|
||||
private:
|
||||
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:
|
||||
Room* room_ = nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user