This commit is contained in:
parent
5298e61a8a
commit
42ff0b1392
7 changed files with 40 additions and 2 deletions
|
@ -137,7 +137,8 @@ hazard_src := hazard \
|
||||||
hspikes \
|
hspikes \
|
||||||
hbwheel \
|
hbwheel \
|
||||||
hdbarrel \
|
hdbarrel \
|
||||||
hbbarrel
|
hbbarrel \
|
||||||
|
hrrock
|
||||||
|
|
||||||
fx_src := fx \
|
fx_src := fx \
|
||||||
fxtrail \
|
fxtrail \
|
||||||
|
|
|
@ -87,6 +87,10 @@
|
||||||
#include "hazard\hfirebal.h"
|
#include "hazard\hfirebal.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __HAZARD_HRROCK_H__
|
||||||
|
#include "hazard\hrrock.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
@ -106,6 +110,7 @@ CNpcHazard::NPC_HAZARD_UNIT_TYPE CNpcHazard::mapEditConvertTable[NPC_HAZARD_TYPE
|
||||||
NPC_DUAL_PLATFORM_BARREL_HAZARD,
|
NPC_DUAL_PLATFORM_BARREL_HAZARD,
|
||||||
NPC_BOUNCING_BARREL_HAZARD,
|
NPC_BOUNCING_BARREL_HAZARD,
|
||||||
NPC_FIREBALL_HAZARD,
|
NPC_FIREBALL_HAZARD,
|
||||||
|
NPC_ROLLING_ROCK_HAZARD,
|
||||||
};
|
};
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -202,6 +207,12 @@ CNpcHazard *CNpcHazard::Create(sThingHazard *ThisHazard)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case NPC_ROLLING_ROCK_HAZARD:
|
||||||
|
{
|
||||||
|
hazard = new ("rolling rock hazard") CNpcRollingRockHazard;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
hazard = NULL;
|
hazard = NULL;
|
||||||
|
|
|
@ -50,6 +50,7 @@ public:
|
||||||
NPC_DUAL_PLATFORM_BARREL_HAZARD,
|
NPC_DUAL_PLATFORM_BARREL_HAZARD,
|
||||||
NPC_BOUNCING_BARREL_HAZARD,
|
NPC_BOUNCING_BARREL_HAZARD,
|
||||||
NPC_FIREBALL_HAZARD,
|
NPC_FIREBALL_HAZARD,
|
||||||
|
NPC_ROLLING_ROCK_HAZARD,
|
||||||
|
|
||||||
NPC_HAZARD_TYPE_MAX,
|
NPC_HAZARD_TYPE_MAX,
|
||||||
};
|
};
|
||||||
|
|
|
@ -26,3 +26,18 @@ void CNpcBubblePlatform::processMovement( int _frames )
|
||||||
setToShutdown();
|
setToShutdown();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
const CRECT *CNpcBubblePlatform::getThinkBBox()
|
||||||
|
{
|
||||||
|
CRECT objThinkBox = getCollisionArea();
|
||||||
|
|
||||||
|
sBBox &thinkBBox = CThingManager::getThinkBBox();
|
||||||
|
objThinkBox.x1 = thinkBBox.XMin;
|
||||||
|
objThinkBox.x2 = thinkBBox.XMax;
|
||||||
|
objThinkBox.y1 = thinkBBox.YMin;
|
||||||
|
objThinkBox.y2 = thinkBBox.YMax;
|
||||||
|
|
||||||
|
return &objThinkBox;
|
||||||
|
}
|
|
@ -20,6 +20,8 @@
|
||||||
|
|
||||||
class CNpcBubblePlatform : public CNpcPlatform
|
class CNpcBubblePlatform : public CNpcPlatform
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
virtual CRECT const *getThinkBBox();
|
||||||
protected:
|
protected:
|
||||||
virtual void processMovement( int _frames );
|
virtual void processMovement( int _frames );
|
||||||
};
|
};
|
||||||
|
|
|
@ -134,7 +134,7 @@ HeartPendulum=1
|
||||||
Tugboat=2
|
Tugboat=2
|
||||||
Acorn=0
|
Acorn=0
|
||||||
PumpkinPendulum=1
|
PumpkinPendulum=1
|
||||||
RollingRock=3
|
RollingRock=14
|
||||||
CircularSaw=5
|
CircularSaw=5
|
||||||
Pylons=4
|
Pylons=4
|
||||||
SpinningBlades=6
|
SpinningBlades=6
|
||||||
|
|
|
@ -909,6 +909,14 @@ SOURCE=..\..\..\source\hazard\hpendulm.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=..\..\..\source\hazard\hrrock.cpp
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=..\..\..\source\hazard\hrrock.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\..\source\hazard\hsaw.cpp
|
SOURCE=..\..\..\source\hazard\hsaw.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue