This commit is contained in:
parent
09be7b5206
commit
dc9fc0a2bf
8 changed files with 0 additions and 183 deletions
|
@ -46,48 +46,6 @@
|
||||||
---- */
|
---- */
|
||||||
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
|
||||||
Function:
|
|
||||||
Purpose:
|
|
||||||
Params:
|
|
||||||
Returns:
|
|
||||||
---------------------------------------------------------------------- */
|
|
||||||
#if defined (__USER_art__) || defined (__USER_sbart__)
|
|
||||||
#include "gfx\prim.h"
|
|
||||||
void CGaryStartTrigger::render()
|
|
||||||
{
|
|
||||||
DVECTOR ofs;
|
|
||||||
CRECT area;
|
|
||||||
|
|
||||||
CTriggerThing::render();
|
|
||||||
|
|
||||||
ofs=CLevel::getCameraPos();
|
|
||||||
area=getCollisionArea();
|
|
||||||
area.x1-=ofs.vx;
|
|
||||||
area.y1-=ofs.vy;
|
|
||||||
area.x2-=ofs.vx;
|
|
||||||
area.y2-=ofs.vy;
|
|
||||||
|
|
||||||
if(area.x1<=511&&area.x2>=0&&
|
|
||||||
area.y1<=255&&area.y2>=0)
|
|
||||||
{
|
|
||||||
POLY_F4 *f4;
|
|
||||||
f4=GetPrimF4();
|
|
||||||
setXY4(f4,area.x1,area.y1,
|
|
||||||
area.x2,area.y1,
|
|
||||||
area.x1,area.y2,
|
|
||||||
area.x2,area.y2);
|
|
||||||
setRGB0(f4,0,255,0);
|
|
||||||
setSemiTrans(f4,true);
|
|
||||||
AddPrimToList(f4,0);
|
|
||||||
DrawLine(area.x1,area.y1,area.x2,area.y1,0,255,0,0);
|
|
||||||
DrawLine(area.x2,area.y1,area.x2,area.y2,0,255,0,0);
|
|
||||||
DrawLine(area.x2,area.y2,area.x1,area.y2,0,255,0,0);
|
|
||||||
DrawLine(area.x1,area.y2,area.x1,area.y1,0,255,0,0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
Function:
|
Function:
|
||||||
Purpose:
|
Purpose:
|
||||||
|
|
|
@ -41,9 +41,6 @@
|
||||||
class CGaryStartTrigger : public CTrigger
|
class CGaryStartTrigger : public CTrigger
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
#if defined (__USER_art__) || defined (__USER_sbart__)
|
|
||||||
virtual void render();
|
|
||||||
#endif
|
|
||||||
virtual void setGary( CNpcGaryFriend *gary ) {m_gary = gary;}
|
virtual void setGary( CNpcGaryFriend *gary ) {m_gary = gary;}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -54,48 +54,6 @@
|
||||||
---- */
|
---- */
|
||||||
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
|
||||||
Function:
|
|
||||||
Purpose:
|
|
||||||
Params:
|
|
||||||
Returns:
|
|
||||||
---------------------------------------------------------------------- */
|
|
||||||
#if defined (__USER_art__) || defined (__USER_sbart__)
|
|
||||||
#include "gfx\prim.h"
|
|
||||||
void CGaryGoLeftTrigger::render()
|
|
||||||
{
|
|
||||||
DVECTOR ofs;
|
|
||||||
CRECT area;
|
|
||||||
|
|
||||||
CTriggerThing::render();
|
|
||||||
|
|
||||||
ofs=CLevel::getCameraPos();
|
|
||||||
area=getCollisionArea();
|
|
||||||
area.x1-=ofs.vx;
|
|
||||||
area.y1-=ofs.vy;
|
|
||||||
area.x2-=ofs.vx;
|
|
||||||
area.y2-=ofs.vy;
|
|
||||||
|
|
||||||
if(area.x1<=511&&area.x2>=0&&
|
|
||||||
area.y1<=255&&area.y2>=0)
|
|
||||||
{
|
|
||||||
POLY_F4 *f4;
|
|
||||||
f4=GetPrimF4();
|
|
||||||
setXY4(f4,area.x1,area.y1,
|
|
||||||
area.x2,area.y1,
|
|
||||||
area.x1,area.y2,
|
|
||||||
area.x2,area.y2);
|
|
||||||
setRGB0(f4,0,255,0);
|
|
||||||
setSemiTrans(f4,true);
|
|
||||||
AddPrimToList(f4,0);
|
|
||||||
DrawLine(area.x1,area.y1,area.x2,area.y1,0,255,0,0);
|
|
||||||
DrawLine(area.x2,area.y1,area.x2,area.y2,0,255,0,0);
|
|
||||||
DrawLine(area.x2,area.y2,area.x1,area.y2,0,255,0,0);
|
|
||||||
DrawLine(area.x1,area.y2,area.x1,area.y1,0,255,0,0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
Function:
|
Function:
|
||||||
Purpose:
|
Purpose:
|
||||||
|
|
|
@ -36,10 +36,6 @@
|
||||||
|
|
||||||
class CGaryGoLeftTrigger : public CTrigger
|
class CGaryGoLeftTrigger : public CTrigger
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
#if defined (__USER_art__) || defined (__USER_sbart__)
|
|
||||||
virtual void render();
|
|
||||||
#endif
|
|
||||||
protected:
|
protected:
|
||||||
virtual void collidedWith(CThing *_thisThing);
|
virtual void collidedWith(CThing *_thisThing);
|
||||||
};
|
};
|
||||||
|
|
|
@ -54,48 +54,6 @@
|
||||||
---- */
|
---- */
|
||||||
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
|
||||||
Function:
|
|
||||||
Purpose:
|
|
||||||
Params:
|
|
||||||
Returns:
|
|
||||||
---------------------------------------------------------------------- */
|
|
||||||
#if defined (__USER_art__) || defined (__USER_sbart__)
|
|
||||||
#include "gfx\prim.h"
|
|
||||||
void CGaryGoRightTrigger::render()
|
|
||||||
{
|
|
||||||
DVECTOR ofs;
|
|
||||||
CRECT area;
|
|
||||||
|
|
||||||
CTriggerThing::render();
|
|
||||||
|
|
||||||
ofs=CLevel::getCameraPos();
|
|
||||||
area=getCollisionArea();
|
|
||||||
area.x1-=ofs.vx;
|
|
||||||
area.y1-=ofs.vy;
|
|
||||||
area.x2-=ofs.vx;
|
|
||||||
area.y2-=ofs.vy;
|
|
||||||
|
|
||||||
if(area.x1<=511&&area.x2>=0&&
|
|
||||||
area.y1<=255&&area.y2>=0)
|
|
||||||
{
|
|
||||||
POLY_F4 *f4;
|
|
||||||
f4=GetPrimF4();
|
|
||||||
setXY4(f4,area.x1,area.y1,
|
|
||||||
area.x2,area.y1,
|
|
||||||
area.x1,area.y2,
|
|
||||||
area.x2,area.y2);
|
|
||||||
setRGB0(f4,0,255,0);
|
|
||||||
setSemiTrans(f4,true);
|
|
||||||
AddPrimToList(f4,0);
|
|
||||||
DrawLine(area.x1,area.y1,area.x2,area.y1,0,255,0,0);
|
|
||||||
DrawLine(area.x2,area.y1,area.x2,area.y2,0,255,0,0);
|
|
||||||
DrawLine(area.x2,area.y2,area.x1,area.y2,0,255,0,0);
|
|
||||||
DrawLine(area.x1,area.y2,area.x1,area.y1,0,255,0,0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
Function:
|
Function:
|
||||||
Purpose:
|
Purpose:
|
||||||
|
|
|
@ -36,10 +36,6 @@
|
||||||
|
|
||||||
class CGaryGoRightTrigger : public CTrigger
|
class CGaryGoRightTrigger : public CTrigger
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
#if defined (__USER_art__) || defined (__USER_sbart__)
|
|
||||||
virtual void render();
|
|
||||||
#endif
|
|
||||||
protected:
|
protected:
|
||||||
virtual void collidedWith(CThing *_thisThing);
|
virtual void collidedWith(CThing *_thisThing);
|
||||||
};
|
};
|
||||||
|
|
|
@ -54,48 +54,6 @@
|
||||||
---- */
|
---- */
|
||||||
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
|
||||||
Function:
|
|
||||||
Purpose:
|
|
||||||
Params:
|
|
||||||
Returns:
|
|
||||||
---------------------------------------------------------------------- */
|
|
||||||
#if defined (__USER_art__) || defined (__USER_sbart__)
|
|
||||||
#include "gfx\prim.h"
|
|
||||||
void CGaryGoLeftTrigger::render()
|
|
||||||
{
|
|
||||||
DVECTOR ofs;
|
|
||||||
CRECT area;
|
|
||||||
|
|
||||||
CTriggerThing::render();
|
|
||||||
|
|
||||||
ofs=CLevel::getCameraPos();
|
|
||||||
area=getCollisionArea();
|
|
||||||
area.x1-=ofs.vx;
|
|
||||||
area.y1-=ofs.vy;
|
|
||||||
area.x2-=ofs.vx;
|
|
||||||
area.y2-=ofs.vy;
|
|
||||||
|
|
||||||
if(area.x1<=511&&area.x2>=0&&
|
|
||||||
area.y1<=255&&area.y2>=0)
|
|
||||||
{
|
|
||||||
POLY_F4 *f4;
|
|
||||||
f4=GetPrimF4();
|
|
||||||
setXY4(f4,area.x1,area.y1,
|
|
||||||
area.x2,area.y1,
|
|
||||||
area.x1,area.y2,
|
|
||||||
area.x2,area.y2);
|
|
||||||
setRGB0(f4,0,255,0);
|
|
||||||
setSemiTrans(f4,true);
|
|
||||||
AddPrimToList(f4,0);
|
|
||||||
DrawLine(area.x1,area.y1,area.x2,area.y1,0,255,0,0);
|
|
||||||
DrawLine(area.x2,area.y1,area.x2,area.y2,0,255,0,0);
|
|
||||||
DrawLine(area.x2,area.y2,area.x1,area.y2,0,255,0,0);
|
|
||||||
DrawLine(area.x1,area.y2,area.x1,area.y1,0,255,0,0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
Function:
|
Function:
|
||||||
Purpose:
|
Purpose:
|
||||||
|
|
|
@ -36,10 +36,6 @@
|
||||||
|
|
||||||
class CGaryStopTrigger : public CTrigger
|
class CGaryStopTrigger : public CTrigger
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
#if defined (__USER_art__) || defined (__USER_sbart__)
|
|
||||||
virtual void render();
|
|
||||||
#endif
|
|
||||||
protected:
|
protected:
|
||||||
virtual void collidedWith(CThing *_thisThing);
|
virtual void collidedWith(CThing *_thisThing);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue