This commit is contained in:
parent
50e5b9af4d
commit
9fcc3e3c9a
4 changed files with 27 additions and 10 deletions
|
@ -57,9 +57,9 @@ enemy_src := 2denemy \
|
||||||
nsjfish \
|
nsjfish \
|
||||||
nclam \
|
nclam \
|
||||||
nscrab \
|
nscrab \
|
||||||
nnsfish \
|
|
||||||
ngpirate \
|
ngpirate \
|
||||||
nshrkman \
|
nshrkman \
|
||||||
|
ngeneric \
|
||||||
enemy
|
enemy
|
||||||
|
|
||||||
fileio_src := fileio \
|
fileio_src := fileio \
|
||||||
|
|
|
@ -300,7 +300,7 @@ CNpc::NPC_DATA CNpc::m_data[NPC_UNIT_TYPE_MAX] =
|
||||||
NPC_SENSOR_NINJA_STARFISH_USER_CLOSE,
|
NPC_SENSOR_NINJA_STARFISH_USER_CLOSE,
|
||||||
NPC_MOVEMENT_STATIC,
|
NPC_MOVEMENT_STATIC,
|
||||||
NPC_MOVEMENT_MODIFIER_NONE,
|
NPC_MOVEMENT_MODIFIER_NONE,
|
||||||
NPC_CLOSE_NINJA_STARFISH_ATTACK,
|
NPC_CLOSE_GENERIC_USER_SEEK,
|
||||||
NPC_TIMER_NONE,
|
NPC_TIMER_NONE,
|
||||||
false,
|
false,
|
||||||
3,
|
3,
|
||||||
|
@ -354,12 +354,24 @@ CNpc::NPC_DATA CNpc::m_data[NPC_UNIT_TYPE_MAX] =
|
||||||
3,
|
3,
|
||||||
2048,
|
2048,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{ // NPC_OIL_BLOB
|
||||||
|
NPC_INIT_DEFAULT,
|
||||||
|
NPC_SENSOR_OIL_BLOB_USER_CLOSE,
|
||||||
|
NPC_MOVEMENT_STATIC,
|
||||||
|
NPC_MOVEMENT_MODIFIER_NONE,
|
||||||
|
NPC_CLOSE_GENERIC_USER_SEEK,
|
||||||
|
NPC_TIMER_NONE,
|
||||||
|
false,
|
||||||
|
3,
|
||||||
|
64,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
void CNpc::init()
|
void CNpc::init()
|
||||||
{
|
{
|
||||||
m_type = NPC_SHARK_MAN;
|
m_type = NPC_OIL_BLOB;
|
||||||
|
|
||||||
m_heading = 3072;
|
m_heading = 3072;
|
||||||
m_movementTimer = 0;
|
m_movementTimer = 0;
|
||||||
|
@ -538,6 +550,7 @@ bool CNpc::processSensor()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case NPC_SENSOR_OIL_BLOB_USER_CLOSE:
|
||||||
case NPC_SENSOR_NINJA_STARFISH_USER_CLOSE:
|
case NPC_SENSOR_NINJA_STARFISH_USER_CLOSE:
|
||||||
{
|
{
|
||||||
if ( xDistSqr + yDistSqr < 10000 )
|
if ( xDistSqr + yDistSqr < 10000 )
|
||||||
|
@ -843,8 +856,8 @@ void CNpc::processClose(int _frames)
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NPC_CLOSE_NINJA_STARFISH_ATTACK:
|
case NPC_CLOSE_GENERIC_USER_SEEK:
|
||||||
processCloseNinjaStarfishAttack( _frames );
|
processCloseGenericUserSeek( _frames );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,7 @@ protected:
|
||||||
NPC_GHOST_PIRATE,
|
NPC_GHOST_PIRATE,
|
||||||
NPC_FLAMING_SKULL,
|
NPC_FLAMING_SKULL,
|
||||||
NPC_SHARK_MAN,
|
NPC_SHARK_MAN,
|
||||||
|
NPC_OIL_BLOB,
|
||||||
NPC_UNIT_TYPE_MAX,
|
NPC_UNIT_TYPE_MAX,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -92,6 +93,7 @@ protected:
|
||||||
NPC_SENSOR_NINJA_STARFISH_USER_CLOSE,
|
NPC_SENSOR_NINJA_STARFISH_USER_CLOSE,
|
||||||
NPC_SENSOR_GHOST_PIRATE_USER_CLOSE,
|
NPC_SENSOR_GHOST_PIRATE_USER_CLOSE,
|
||||||
NPC_SENSOR_SHARK_MAN_USER_VISIBLE,
|
NPC_SENSOR_SHARK_MAN_USER_VISIBLE,
|
||||||
|
NPC_SENSOR_OIL_BLOB_USER_CLOSE,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum NPC_CLOSE_FUNC
|
enum NPC_CLOSE_FUNC
|
||||||
|
@ -100,9 +102,9 @@ protected:
|
||||||
NPC_CLOSE_JELLYFISH_EVADE = 1,
|
NPC_CLOSE_JELLYFISH_EVADE = 1,
|
||||||
NPC_CLOSE_CLAM_ATTACK,
|
NPC_CLOSE_CLAM_ATTACK,
|
||||||
NPC_CLOSE_SPIDER_CRAB_ATTACK,
|
NPC_CLOSE_SPIDER_CRAB_ATTACK,
|
||||||
NPC_CLOSE_NINJA_STARFISH_ATTACK,
|
|
||||||
NPC_CLOSE_GHOST_PIRATE_ATTACK,
|
NPC_CLOSE_GHOST_PIRATE_ATTACK,
|
||||||
NPC_CLOSE_SHARK_MAN_ATTACK,
|
NPC_CLOSE_SHARK_MAN_ATTACK,
|
||||||
|
NPC_CLOSE_GENERIC_USER_SEEK,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum NPC_MOVEMENT_FUNC
|
enum NPC_MOVEMENT_FUNC
|
||||||
|
@ -161,6 +163,8 @@ protected:
|
||||||
void processCollision();
|
void processCollision();
|
||||||
void processTimer( int _frames );
|
void processTimer( int _frames );
|
||||||
|
|
||||||
|
void processCloseGenericUserSeek( int _frames );
|
||||||
|
|
||||||
// small jellyfish functions
|
// small jellyfish functions
|
||||||
|
|
||||||
void processSmallJellyfishSensor();
|
void processSmallJellyfishSensor();
|
||||||
|
@ -175,10 +179,6 @@ protected:
|
||||||
|
|
||||||
void processCloseSpiderCrabAttack( int _frames );
|
void processCloseSpiderCrabAttack( int _frames );
|
||||||
|
|
||||||
// ninja starfish functions
|
|
||||||
|
|
||||||
void processCloseNinjaStarfishAttack( int _frames );
|
|
||||||
|
|
||||||
// ghost pirate functions
|
// ghost pirate functions
|
||||||
|
|
||||||
void processCloseGhostPirateAttack( int _frames );
|
void processCloseGhostPirateAttack( int _frames );
|
||||||
|
|
|
@ -129,6 +129,10 @@ SOURCE=..\..\..\source\enemy\nclam.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=..\..\..\source\enemy\ngeneric.cpp
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\..\source\enemy\ngpirate.cpp
|
SOURCE=..\..\..\source\enemy\ngpirate.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
Loading…
Add table
Reference in a new issue