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