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

Public Member Functions

 cFloaterEntityCollisionCallback (cFloater *a_Floater, 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...
 
bool HasHit (void) const
 Returns true if the callback has encountered a true hit. More...
 
bool operator() (cEntity &a_Entity)
 

Protected Attributes

cFloaterm_Floater
 
cEntitym_HitEntity
 
double m_MinCoeff
 
const Vector3dm_NextPos
 
const Vector3dm_Pos
 

Detailed Description

Definition at line 16 of file Floater.cpp.

Constructor & Destructor Documentation

◆ cFloaterEntityCollisionCallback()

cFloaterEntityCollisionCallback::cFloaterEntityCollisionCallback ( cFloater a_Floater,
const Vector3d a_Pos,
const Vector3d a_NextPos 
)
inline

Definition at line 19 of file Floater.cpp.

Member Function Documentation

◆ GetHitEntity()

cEntity* cFloaterEntityCollisionCallback::GetHitEntity ( void  ) const
inline

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

Definition at line 57 of file Floater.cpp.

◆ HasHit()

bool cFloaterEntityCollisionCallback::HasHit ( void  ) const
inline

Returns true if the callback has encountered a true hit.

Definition at line 60 of file Floater.cpp.

◆ operator()()

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

Definition at line 27 of file Floater.cpp.

Member Data Documentation

◆ m_Floater

cFloater* cFloaterEntityCollisionCallback::m_Floater
protected

Definition at line 63 of file Floater.cpp.

◆ m_HitEntity

cEntity* cFloaterEntityCollisionCallback::m_HitEntity
protected

Definition at line 70 of file Floater.cpp.

◆ m_MinCoeff

double cFloaterEntityCollisionCallback::m_MinCoeff
protected

Definition at line 66 of file Floater.cpp.

◆ m_NextPos

const Vector3d& cFloaterEntityCollisionCallback::m_NextPos
protected

Definition at line 65 of file Floater.cpp.

◆ m_Pos

const Vector3d& cFloaterEntityCollisionCallback::m_Pos
protected

Definition at line 64 of file Floater.cpp.


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