summaryrefslogtreecommitdiffstats
path: root/src/animation/AnimBlendAssocGroup.h
blob: e264787ea16f658a903ee69be24f085d713c6ef7 (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
#pragma once

class CAnimBlendAssociation;
struct CAnimBlock;

class CAnimBlendAssocGroup
{
public:
	CAnimBlock *animBlock;
	CAnimBlendAssociation *assocList;
	int32 numAssociations;
	int32 firstAnimId;
	int32 groupId;	// id of self in ms_aAnimAssocGroups

	CAnimBlendAssocGroup(void);
	~CAnimBlendAssocGroup(void);
	void DestroyAssociations(void);
	CAnimBlendAssociation *GetAnimation(uint32 id);
	CAnimBlendAssociation *GetAnimation(const char *name);
	CAnimBlendAssociation *CopyAnimation(uint32 id);
	CAnimBlendAssociation *CopyAnimation(const char *name);
	void CreateAssociations(const char *name);
	void CreateAssociations(const char *blockName, RpClump *clump, const char **animNames, int numAssocs);
	void CreateAssociations(const char *blockName, const char *animNames, const char *objectNames, int numChars);
};