This commit is contained in:
Charles 2001-05-01 22:06:59 +00:00
parent b061d250d6
commit 5e15b2b759
3 changed files with 39 additions and 0 deletions

View file

@ -250,6 +250,30 @@ void CNpcFriend::render()
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcFriend::collidedWith( CThing *_thisThing )
{
switch(_thisThing->getThingType())
{
case TYPE_PLAYER:
{
CPlayer *player = (CPlayer *) _thisThing;
if ( player->isTryingToConversateWithFriend() )
{
startConderversation();
}
break;
}
default:
ASSERT(0);
break;
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcFriend::startConderversation()
{
// I am 'avin a fayg