#include "SpaceshipCollisionResponse.h"
#include "VitalsHealth.h"
#include "Object.h"
using tlib::Object;
using tlib::OCVitalsHealth;

void SpaceshipCollisionResponse::respond( const Vector3f &vCollVector ) const
{
    m_oOwner->setPos( m_oOwner->getPos() + vCollVector );
    OCVitalsHealth *cVitals = (OCVitalsHealth*)getOwner()->getComponent("vitals");
    cVitals->hit( 1 );
}