From ae6a869fc206585d770b49a53d2f4c250bc1c31e Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 26 Mar 2001 14:28:02 +0000 Subject: [PATCH] --- source/enemy/nworm.cpp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 source/enemy/nworm.cpp diff --git a/source/enemy/nworm.cpp b/source/enemy/nworm.cpp new file mode 100644 index 000000000..76ffa0066 --- /dev/null +++ b/source/enemy/nworm.cpp @@ -0,0 +1,36 @@ +/*========================================================================= + + nworm.cpp + + Author: CRB + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __ENEMY_NPC_H__ +#include "enemy\npc.h" +#endif + +//#ifndef __GAME_GAME_H__ +//#include "game\game.h" +//#endif + +#ifndef __PLAYER_PLAYER_H__ +#include "player\player.h" +#endif + +void CNpcEnemy::processParasiticWormMovement( int _frames ) +{ + s32 moveX = 0, moveY = 0; + s32 moveVel = 0; + s32 moveDist = 0; + + processGenericFixedPathMove( _frames, &moveX, &moveY, &moveVel, &moveDist ); + + Pos.vx += moveX; + Pos.vy += moveY; +} \ No newline at end of file