blob: b2d455a444aede8fabc30ce3d14747c659426c40 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
//=============================================================================
// Copyright (C) 2002 Radical Entertainment Ltd. All rights reserved.
//
// File: presentationanimator.h
//
// Description: Blahblahblah
//
// History: 9/24/2002 + Created -- NAME
//
//=============================================================================
#ifndef PRESENTATIONANIMATOR_H
#define PRESENTATIONANIMATOR_H
//========================================
// Nested Includes
//========================================
#include <vector>
#include <memory/stlallocators.h>
//========================================
// Forward References
//========================================
class Character;
class MouthFlapper;
//=============================================================================
//
// Synopsis: PresentationAnimator
//
//=============================================================================
class PresentationAnimator
{
public:
PresentationAnimator();
virtual ~PresentationAnimator();
void SetCharacter( Character* pCharacter );
Character* GetCharacter();
typedef std::vector< tName, s2alloc<tName> > TNAMEVECTOR;
void AddAmbientAnimations( const TNAMEVECTOR& animations );
void ClearAmbientAnimations( void );
void PlaySpecialAmbientAnimation();
void SetRandomSelection( const bool random );
const bool GetRandomSelection() const;
void StartTalking();
void StopTalking();
void TalkFor(int time);
void Update( int elapsedTime );
private:
const tName ChooseNextAnimation();
const tName ChooseRandomAnimation() const;
PresentationAnimator( const PresentationAnimator& presentationanimator );
PresentationAnimator& operator=( const PresentationAnimator& presentationanimator );
Character* mCharacter;
MouthFlapper* mMouthFlapper;
TNAMEVECTOR mAnimationNames;
bool mRandomSelection;
int mTalkTime;
};
#endif //PRESENTATIONANIMATOR_H
|