mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-06 15:05:47 -07:00
sorry, update-workspaces + rebuild is necessary (moved boost/utility into PCH) - ps/ : committed additional documentation on behalf of Joe. - lib/ : HAVE_C99 - replace with specific e.g. HAVE_NPRINTF; intended to help with MacOSX compat (by no longer requiring us to lie about STDC_VERSION) - NO_COPY_CTOR -> boost::noncopyable This was SVN commit r4825.
34 lines
726 B
C++
34 lines
726 B
C++
#ifndef ACTORVIEWER_H__
|
|
#define ACTORVIEWER_H__
|
|
|
|
struct ActorViewerImpl;
|
|
struct SColor4ub;
|
|
class CUnit;
|
|
class CStrW;
|
|
|
|
class ActorViewer : boost::noncopyable
|
|
{
|
|
public:
|
|
ActorViewer();
|
|
~ActorViewer();
|
|
|
|
void SetActor(const CStrW& id, const CStrW& animation);
|
|
void UnloadObjects();
|
|
CUnit* GetUnit();
|
|
void SetBackgroundColour(const SColor4ub& colour);
|
|
void SetWalkEnabled(bool enabled);
|
|
void SetGroundEnabled(bool enabled);
|
|
void SetShadowsEnabled(bool enabled);
|
|
void SetStatsEnabled(bool enabled);
|
|
void Render();
|
|
void Update(float dt);
|
|
|
|
// Returns whether there is a selected actor which has more than one
|
|
// frame of animation
|
|
bool HasAnimation() const;
|
|
|
|
private:
|
|
ActorViewerImpl& m;
|
|
};
|
|
|
|
#endif // ACTORVIEWER_H__
|