diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-15 23:50:00 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-15 23:50:00 +0100 |
commit | d15d40ad6969cc2d0945853fa13622cbef9f5b98 (patch) | |
tree | d47f3bd2c09ee9578e68defd7804017ec8701cfb /source/cTracer.h | |
parent | New players no longer cause an assert (diff) | |
download | cuberite-d15d40ad6969cc2d0945853fa13622cbef9f5b98.tar cuberite-d15d40ad6969cc2d0945853fa13622cbef9f5b98.tar.gz cuberite-d15d40ad6969cc2d0945853fa13622cbef9f5b98.tar.bz2 cuberite-d15d40ad6969cc2d0945853fa13622cbef9f5b98.tar.lz cuberite-d15d40ad6969cc2d0945853fa13622cbef9f5b98.tar.xz cuberite-d15d40ad6969cc2d0945853fa13622cbef9f5b98.tar.zst cuberite-d15d40ad6969cc2d0945853fa13622cbef9f5b98.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cTracer.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/source/cTracer.h b/source/cTracer.h index 3b7cd32c1..08ebc72e5 100644 --- a/source/cTracer.h +++ b/source/cTracer.h @@ -1,32 +1,34 @@ #pragma once
+#include "Vector3i.h"
+#include "Vector3f.h"
+
+
class cWorld;
-class Vector3i;
-class Vector3f;
class cTracer //tolua_export
{ //tolua_export
public: //tolua_export
- Vector3f* DotPos;
- Vector3f* BoxOffset;
+ Vector3f DotPos;
+ Vector3f BoxOffset;
cTracer( cWorld* a_World); //tolua_export
~cTracer(); //tolua_export
int Trace( const Vector3f & a_Start, const Vector3f & a_Direction, int a_Distance ); //tolua_export
void SetValues( const Vector3f & a_Start, const Vector3f & a_Direction ); //tolua_export
- Vector3f* BlockHitPosition; //tolua_export
- Vector3f* HitNormal; //tolua_export
- Vector3f* RealHit; //tolua_export
+ Vector3f BlockHitPosition; //tolua_export
+ Vector3f HitNormal; //tolua_export
+ Vector3f RealHit; //tolua_export
private:
int intersect3D_SegmentPlane( const Vector3f & a_Origin, const Vector3f & a_End, const Vector3f & a_PlanePos, const Vector3f & a_PlaneNormal );
int GetHitNormal( const Vector3f & start, const Vector3f & end, const Vector3i & a_BlockPos);
float SigNum( float a_Num );
cWorld* m_World;
- Vector3f* m_NormalTable[6];
+ Vector3f m_NormalTable[6];
- Vector3f* dir;
- Vector3f* tDelta;
- Vector3i* pos;
- Vector3i* end1;
- Vector3i* step;
- Vector3f* tMax;
+ Vector3f dir;
+ Vector3f tDelta;
+ Vector3i pos;
+ Vector3i end1;
+ Vector3i step;
+ Vector3f tMax;
}; //tolua_export
\ No newline at end of file |