1
This commit is contained in:
parent
4696c8576d
commit
5205f1d36b
@ -926,3 +926,8 @@ const Position& Bullet::GetPos()
|
|||||||
{
|
{
|
||||||
return Entity::GetPos();
|
return Entity::GetPos();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Bullet::Raycast()
|
||||||
|
{
|
||||||
|
raycasted_ = true;
|
||||||
|
}
|
||||||
|
@ -79,6 +79,7 @@ protected:
|
|||||||
void ClearBuffList();
|
void ClearBuffList();
|
||||||
void GetHitThings(BulletCheckResult& result);
|
void GetHitThings(BulletCheckResult& result);
|
||||||
void GetHitCreatures(BulletCheckResult& result);
|
void GetHitCreatures(BulletCheckResult& result);
|
||||||
|
void Raycast();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool later_removed_ = false;
|
bool later_removed_ = false;
|
||||||
@ -88,6 +89,8 @@ private:
|
|||||||
long long create_frameno_ = 0;
|
long long create_frameno_ = 0;
|
||||||
bool strengthened_ = false;
|
bool strengthened_ = false;
|
||||||
std::list<int> buff_list_;
|
std::list<int> buff_list_;
|
||||||
|
bool raycasted_ = false;
|
||||||
|
float raycast_len_ = 0.0f;
|
||||||
|
|
||||||
friend class EntityFactory;
|
friend class EntityFactory;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user