28 #ifndef WINTERMUTE_AD_ACTOR_3DX_H 29 #define WINTERMUTE_AD_ACTOR_3DX_H 31 #include "engines/wintermute/ad/ad_object_3d.h" 32 #include "engines/wintermute/base/base_animation_transition_time.h" 33 #include "engines/wintermute/base/base_point.h" 34 #include "engines/wintermute/base/gfx/xmath.h" 35 #include "engines/wintermute/coll_templ.h" 45 PartEmitter *createParticleEmitter(
bool followParent =
false,
int offsetX = 0,
int offsetY = 0)
override;
47 bool updatePartEmitter()
override;
51 bool displayShadowVolume();
52 bool displayFlatShadow();
53 bool restoreDeviceObjects()
override;
54 bool invalidateDeviceObjects()
override;
55 int32 _stateAnimChannel;
56 void talk(
const char *text,
const char *sound =
nullptr, uint32 duration = 0,
const char *stances =
nullptr, TTextAlign align = TAL_CENTER)
override;
57 int32 getHeight()
override;
58 bool playAnim3DX(
const char *name,
bool setState);
59 bool playAnim3DX(
int channel,
const char *name,
bool setState);
61 uint32 getAnimTransitionTime(
char *from,
char *to)
override;
64 virtual bool renderModel()
override;
66 uint32 _defaultTransTime;
67 uint32 _defaultStopTransTime;
69 float _afterWalkAngle;
76 int32 _talkAnimChannel;
78 TDirectWalkMode _directWalkMode;
79 TDirectTurnMode _directTurnMode;
82 float _directWalkVelocity;
83 float _directTurnVelocity;
97 void goTo3D(
DXVector3 targetPos,
float targetAngle = -1.0f);
98 void goTo2D(
int x,
int y,
float targetAngle = -1.0f);
99 bool turnTo(
float angle);
103 bool display()
override;
104 bool update()
override;
109 bool loadFile(
const char *filename);
110 bool loadBuffer(
char *buffer,
bool complete =
true);
111 float dirToAngle(TDirection dir);
112 TDirection angleToDir(
float angle);
114 bool updateAttachments();
115 bool displayAttachments(
bool registerObjects);
119 bool scSetProperty(
const char *name,
ScValue *value)
override;
121 const char *scToString()
override;
124 bool parseEffect(
char *buffer);
126 bool turnToStep(
float velocity);
127 bool prepareTurn(
float targetAngle);
128 bool mergeAnimations(
const char *filename);
129 bool mergeAnimations2(
const char *filename);
130 bool unloadAnimation(
const char *animName);
131 bool isGoToNeeded(int32 x, int32 y);
Definition: base_game.h:75
Definition: base_point.h:36
Definition: ad_path3d.h:37
Definition: script_value.h:42
Definition: ad_actor_3dx.h:43
Definition: script_stack.h:41
Definition: part_emitter.h:38
Definition: ad_object_3d.h:37
Definition: coll_templ.h:347
Definition: achievements_tables.h:27