mirror of https://github.com/AxioDL/metaforce.git
CPASAnimState: Make computation functions private
These are currently only used internally.
This commit is contained in:
parent
92d65462b9
commit
4043b63721
|
@ -16,17 +16,19 @@ class CPASAnimState {
|
|||
std::vector<CPASAnimInfo> x14_anims;
|
||||
mutable std::vector<s32> x24_selectionCache;
|
||||
|
||||
float ComputeExactMatchWeight(u32 idx, const CPASAnimParm& parm, CPASAnimParm::UParmValue parmVal) const;
|
||||
float ComputePercentErrorWeight(u32 idx, const CPASAnimParm& parm, CPASAnimParm::UParmValue parmVal) const;
|
||||
float ComputeAngularPercentErrorWeight(u32 idx, const CPASAnimParm& parm, CPASAnimParm::UParmValue parmVal) const;
|
||||
|
||||
public:
|
||||
explicit CPASAnimState(CInputStream& in);
|
||||
explicit CPASAnimState(int stateId);
|
||||
s32 GetStateId() const { return x0_id; }
|
||||
s32 GetNumAnims() const { return x14_anims.size(); }
|
||||
CPASAnimParm GetAnimParmData(s32, u32) const;
|
||||
CPASAnimParm GetAnimParmData(s32 animId, u32 parmIdx) const;
|
||||
s32 PickRandomAnimation(CRandom16& rand) const;
|
||||
std::pair<float, s32> FindBestAnimation(const rstl::reserved_vector<CPASAnimParm, 8>&, CRandom16&, s32) const;
|
||||
float ComputeExactMatchWeight(u32, const CPASAnimParm&, CPASAnimParm::UParmValue) const;
|
||||
float ComputePercentErrorWeight(u32, const CPASAnimParm&, CPASAnimParm::UParmValue) const;
|
||||
float ComputeAngularPercentErrorWeight(u32, const CPASAnimParm&, CPASAnimParm::UParmValue) const;
|
||||
std::pair<float, s32> FindBestAnimation(const rstl::reserved_vector<CPASAnimParm, 8>& parms, CRandom16& rand,
|
||||
s32 ignoreAnim) const;
|
||||
};
|
||||
|
||||
} // namespace urde
|
||||
|
|
Loading…
Reference in New Issue