summaryrefslogtreecommitdiffstats
path: root/src/animation/AnimBlendAssociation.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-24 23:11:56 +0200
committerGitHub <noreply@github.com>2019-06-24 23:11:56 +0200
commitf07f411629b686338df10fdce217b2d258f38c92 (patch)
treecd07798b2daf33ea3a152e54cd18809da2cc9b2f /src/animation/AnimBlendAssociation.h
parentreplaced some ctors; made PreRender call game function (diff)
parentCPed, CVehicle, mostly entering/exiting car (diff)
downloadre3-f07f411629b686338df10fdce217b2d258f38c92.tar
re3-f07f411629b686338df10fdce217b2d258f38c92.tar.gz
re3-f07f411629b686338df10fdce217b2d258f38c92.tar.bz2
re3-f07f411629b686338df10fdce217b2d258f38c92.tar.lz
re3-f07f411629b686338df10fdce217b2d258f38c92.tar.xz
re3-f07f411629b686338df10fdce217b2d258f38c92.tar.zst
re3-f07f411629b686338df10fdce217b2d258f38c92.zip
Diffstat (limited to 'src/animation/AnimBlendAssociation.h')
-rw-r--r--src/animation/AnimBlendAssociation.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/animation/AnimBlendAssociation.h b/src/animation/AnimBlendAssociation.h
index 7eec69a0..076fa810 100644
--- a/src/animation/AnimBlendAssociation.h
+++ b/src/animation/AnimBlendAssociation.h
@@ -2,8 +2,7 @@
#include "AnimBlendList.h"
#include "AnimBlendNode.h"
-
-class CAnimBlendHierarchy;
+#include "AnimBlendHierarchy.h"
enum {
// TODO
@@ -78,6 +77,8 @@ public:
void UpdateTime(float timeDelta, float relSpeed);
bool UpdateBlend(float timeDelta);
+ float GetTimeLeft() { return hierarchy->totalLength - currentTime; }
+
static CAnimBlendAssociation *FromLink(CAnimBlendLink *l) {
return (CAnimBlendAssociation*)((uint8*)l - offsetof(CAnimBlendAssociation, link));
}