This commit is contained in:
parent
b061d250d6
commit
5e15b2b759
3 changed files with 39 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue