Skip to content

Commit

Permalink
GetAnim() and GetAnimState() support functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBx committed Mar 23, 2015
1 parent e6ea001 commit 86f791d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions BuildingClass.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,22 @@ class NOVTABLE BuildingClass : public TechnoClass
return this->SecretProduction;
}

AnimClass*& GetAnim(BuildingAnimSlot slot) {
return this->Anims[static_cast<int>(slot)];
}

AnimClass* const& GetAnim(BuildingAnimSlot slot) const {
return this->Anims[static_cast<int>(slot)];
}

bool& GetAnimState(BuildingAnimSlot slot) {
return this->AnimStates[static_cast<int>(slot)];
}

bool const& GetAnimState(BuildingAnimSlot slot) const {
return this->AnimStates[static_cast<int>(slot)];
}

protected:
BuildingClass() : TechnoClass(false) { }

Expand Down

0 comments on commit 86f791d

Please sign in to comment.