66 {
return (
int)
mPos.
x; }
72 {
return (
int)
mPos.
y; }
std::list< Actor * > Actors
virtual void setMap(Map *map)
int getPixelX() const
Returns the pixels X coordinate of the actor.
virtual int getTileY() const
Returns the y coordinate in tiles of the actor.
int getPixelY() const
Returns the pixel Y coordinate of the actor.
virtual int getDrawOrder() const
Returns the pixel Y coordinate that the actor should be drawn at.
virtual int getTileX() const
Returns the x coordinate in tiles of the actor.
Actors::iterator mMapActor
virtual void setPosition(const Vector &pos)
Sets the pixel position of this actor.
virtual bool draw(Graphics *graphics, int offsetX, int offsetY) const =0
Draws the Actor to the given graphics context.
Vector mPos
Position in pixels relative to map.
const Vector & getPosition() const
Returns the pixel position of this actor.
virtual void setAlpha(float alpha)=0
Sets the alpha value used to draw the actor.
virtual float getAlpha() const =0
Returns the current alpha value used to draw the actor.
virtual bool drawnWhenBehind() const
Determines wether the actor should be drawn translucent when behind another object.
A central point of control for graphics.
Defines a class for loading and storing images.