SBSPSS/source/friend/fsandy.cpp

65 lines
1.2 KiB
C++
Raw Normal View History

2001-05-02 23:32:55 +02:00
/*=========================================================================
fsandy.cpp
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __FRIEND_FSANDY_H__
#include "friend\fsandy.h"
#endif
#ifndef __UTILS_HEADER__
#include "utils\utils.h"
#endif
2001-06-28 23:24:02 +02:00
#ifndef __LEVEL_LEVEL_H__
#include "level\level.h"
#endif
2001-05-02 23:32:55 +02:00
#ifndef __GAME_CONVO_H__
#include "game\convo.h"
#endif
#ifndef __ANIM_SANDY_HEADER__
#include <ACTOR_SANDY_Anim.h>
#endif
2001-06-28 23:24:02 +02:00
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcSandyFriend::postInit()
{
switch( CLevel::getCurrentChapter() )
{
case 3:
{
m_conversation = SCRIPTS_CH3L2_01_DAT;
break;
}
default:
{
m_conversation = SCRIPTS_CH1L2_03_DAT;
break;
}
}
}
2001-05-02 23:32:55 +02:00
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcSandyFriend::startConderversation()
{
2001-05-03 15:11:45 +02:00
if( !CConversation::isActive() )
2001-05-02 23:32:55 +02:00
{
2001-06-28 23:24:02 +02:00
CConversation::trigger( m_conversation );
2001-05-02 23:32:55 +02:00
}
}