This commit is contained in:
Charles 2001-06-27 15:36:59 +00:00
parent cc2abc5b06
commit 4f2c6b991f

View File

@ -15,7 +15,36 @@
#include "triggers\tbgeyser.h" #include "triggers\tbgeyser.h"
#endif #endif
#ifndef __PLAYER_PLAYER_H__
#include "player\player.h"
#endif
#ifndef __SYSTEM_GSTATE_H__
#include "system\gstate.h"
#endif
void CBubbleGeyserEmitterTrigger::collidedWith(CThing *_thisThing) void CBubbleGeyserEmitterTrigger::collidedWith(CThing *_thisThing)
{ {
switch( _thisThing->getThingType() )
{
case TYPE_PLAYER:
{
CPlayer *player = (CPlayer *) _thisThing;
DVECTOR move;
move.vx = 0;
move.vy = -4 * GameState::getFramesSinceLast();
player->shove( move );
move.vx = player->getMoveVelocity()->vx;
player->setMoveVelocity( &move );
player->setFloating();
break;
}
default:
break;
}
} }