22 #ifndef FIFE_VIEW_VISUAL_H
23 #define FIFE_VIEW_VISUAL_H
static InstanceVisual * create(Instance *instance)
Constructs and assigns it to the passed item.
ObjectVisual()
Constructor.
AngleAnimationMap m_animation_map
int32_t getClosestMatchingAngle(int32_t angle)
Returns closest matching image angle for given angle.
int32_t getStackPosition()
Gets current stack position of instance.
Visual2DGfx()
Constructor.
Instance visual contains data that is needed to visualize the instance on screen. ...
ActionVisual()
Constructor.
Action visual contains data that is needed to visualize different actions on screen.
virtual ~Visual2DGfx()
Destructor.
static ActionVisual * create(Action *action)
Constructs and assigns it to the passed item.
type_angle2id m_angle2img
void setTransparency(uint8_t transparency)
Sets transparency value for object to be visualized.
int32_t getStaticImageIndexByAngle(int32_t angle)
Returns closest matching static image for given angle.
bool isVisible()
Is instance visible or not.
void setVisible(bool visible)
Sets visibility value for object to be visualized.
void getActionImageAngles(std::vector< int32_t > &angles)
Returns list of available angles for this Action.
void getStaticImageAngles(std::vector< int32_t > &angles)
Returns list of available static image angles for this object.
void addAnimation(uint32_t angle, AnimationPtr animationptr)
Adds new animation with given angle (degrees)
virtual ~ActionVisual()
Destructor.
InstanceVisual()
Constructor.
Object visual contains data that is needed for visualizing objects.
static ObjectVisual * create(Object *object)
Constructs and assigns it to the passed item.
void addStaticImage(uint32_t angle, int32_t image_index)
Adds new static image with given angle (degrees) Static images are used in case there are no actions ...
AnimationPtr getAnimationByAngle(int32_t angle)
Gets index to animation closest to given angle.
uint8_t getTransparency()
Gets current transparency value (0-255)
void setStackPosition(int32_t stackposition)
Sets stack position of the instance Stack position is used to define the order in which instances res...
virtual ~ObjectVisual()
Destructor.
std::map< uint32_t, AnimationPtr > AngleAnimationMap
virtual ~InstanceVisual()
Destructor.
std::map< uint32_t, int32_t > type_angle2id
An Instance is an "instantiation" of an Object at a Location.
Base class for all 2 dimensional visual classes Visual classes are extensions to visualize the stuff ...