1
This commit is contained in:
parent
586481482a
commit
46e5a53bff
@ -3,7 +3,6 @@
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
|
||||
|
||||
#include "buff.h"
|
||||
#include "metamgr.h"
|
||||
#include "human.h"
|
||||
@ -1362,4 +1361,5 @@ void Buff::ProcSputteringFunc(Bullet* bullet)
|
||||
VirtualBullet* bullet = new VirtualBullet();
|
||||
owner->room->AddTask(bullet_uniid, bullet);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -244,6 +244,8 @@ public:
|
||||
bool IsInfiniteBulletMode() { return infinite_bullet_mode_; };
|
||||
void AddToPostBattleAutoFreeList(xtimer_list* timer);
|
||||
bool CanAddObstacle(const a8::Vec2& pos, int obstacle_id);
|
||||
void AddTask(int task_uniid, ITask* task);
|
||||
void RemoveTask(int task_uniid);
|
||||
|
||||
private:
|
||||
void ShuaAndroid();
|
||||
@ -326,8 +328,6 @@ private:
|
||||
void InternalRemoveObjectLater(Entity* entity, a8::XTimerAttacher& entity_xtimer_attacher);
|
||||
void OnBattleStart();
|
||||
void ClearPostBattleAutoFreeList();
|
||||
void AddTask(int task_uniid, ITask* task);
|
||||
void RemoveTask(int task_uniid);
|
||||
|
||||
#ifdef DEBUG
|
||||
void InitDebugInfo();
|
||||
|
@ -18,6 +18,9 @@ class VirtualBullet : public IBullet, public ITask
|
||||
CreatureWeakPtr passenger;
|
||||
Room* room = nullptr;
|
||||
bool is_pre_battle_bullet = false;
|
||||
a8::Vec2 dir;
|
||||
a8::Vec2 born_pos;
|
||||
a8::Vec2 born_dir;
|
||||
|
||||
virtual float GetStrengthenWall() override;
|
||||
virtual long long GetWeaponUniId() override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user