Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Attributes | List of all members
cProjectileEntityCollisionCallback Class Reference
Collaboration diagram for cProjectileEntityCollisionCallback:
Collaboration graph
[legend]

Public Member Functions

 cProjectileEntityCollisionCallback (cProjectileEntity *a_Projectile, const Vector3d &a_Pos, const Vector3d &a_NextPos)
 
cEntityGetHitEntity (void) const
 Returns the nearest entity that was hit, after the enumeration has been completed. More...
 
double GetMinCoeff (void) const
 Returns the line coeff where the hit was encountered, after the enumeration has been completed. More...
 
bool HasHit (void) const
 Returns true if the callback has encountered a true hit. More...
 
bool operator() (cEntity &a_Entity)
 

Protected Attributes

cEntitym_HitEntity
 
double m_MinCoeff
 
const Vector3dm_NextPos
 
const Vector3dm_Pos
 
cProjectileEntitym_Projectile
 

Detailed Description

Definition at line 123 of file ProjectileEntity.cpp.

Constructor & Destructor Documentation

◆ cProjectileEntityCollisionCallback()

cProjectileEntityCollisionCallback::cProjectileEntityCollisionCallback ( cProjectileEntity a_Projectile,
const Vector3d a_Pos,
const Vector3d a_NextPos 
)
inline

Definition at line 126 of file ProjectileEntity.cpp.

Member Function Documentation

◆ GetHitEntity()

cEntity* cProjectileEntityCollisionCallback::GetHitEntity ( void  ) const
inline

Returns the nearest entity that was hit, after the enumeration has been completed.

Definition at line 196 of file ProjectileEntity.cpp.

◆ GetMinCoeff()

double cProjectileEntityCollisionCallback::GetMinCoeff ( void  ) const
inline

Returns the line coeff where the hit was encountered, after the enumeration has been completed.

Definition at line 199 of file ProjectileEntity.cpp.

◆ HasHit()

bool cProjectileEntityCollisionCallback::HasHit ( void  ) const
inline

Returns true if the callback has encountered a true hit.

Definition at line 202 of file ProjectileEntity.cpp.

◆ operator()()

bool cProjectileEntityCollisionCallback::operator() ( cEntity a_Entity)
inline

Definition at line 136 of file ProjectileEntity.cpp.

Member Data Documentation

◆ m_HitEntity

cEntity* cProjectileEntityCollisionCallback::m_HitEntity
protected

Definition at line 212 of file ProjectileEntity.cpp.

◆ m_MinCoeff

double cProjectileEntityCollisionCallback::m_MinCoeff
protected

Definition at line 208 of file ProjectileEntity.cpp.

◆ m_NextPos

const Vector3d& cProjectileEntityCollisionCallback::m_NextPos
protected

Definition at line 207 of file ProjectileEntity.cpp.

◆ m_Pos

const Vector3d& cProjectileEntityCollisionCallback::m_Pos
protected

Definition at line 206 of file ProjectileEntity.cpp.

◆ m_Projectile

cProjectileEntity* cProjectileEntityCollisionCallback::m_Projectile
protected

Definition at line 205 of file ProjectileEntity.cpp.


The documentation for this class was generated from the following file: