FIFE
2008.0
|
#include <image_location.h>
Public Member Functions | |
ImageLocation (const std::string &filename) | |
virtual void | setXShift (int xshift) |
virtual int | getXShift () const |
virtual void | setYShift (int yshift) |
virtual int | getYShift () const |
virtual void | setWidth (unsigned int width) |
virtual unsigned int | getWidth () const |
virtual void | setHeight (unsigned int height) |
virtual unsigned int | getHeight () const |
virtual void | setParentSource (Image *image) |
virtual Image * | getParentSource () const |
virtual bool | operator== (const ResourceLocation &loc) const |
virtual bool | operator< (const ResourceLocation &loc) const |
virtual ResourceLocation * | clone () const |
![]() | |
ResourceLocation (const std::string &filename) | |
virtual | ~ResourceLocation () |
const std::string & | getFilename () const |
Contains information about the Location of a image.
This class is used to give ResourceProvider the information where to find the data.
Definition at line 46 of file image_location.h.
FIFE::ImageLocation::ImageLocation | ( | const std::string & | filename | ) |
Constructor.
Definition at line 33 of file image_location.cpp.
Referenced by clone().
|
virtual |
Creates copy of this location All derived classes must implement this and return their corresponding instance
Reimplemented from FIFE::ResourceLocation.
Definition at line 112 of file image_location.cpp.
References FIFE::ResourceLocation::getFilename(), and ImageLocation().
|
inlinevirtual |
Gets the height of the Image. Used e.g. with subimages
Definition at line 86 of file image_location.h.
|
inlinevirtual |
Gets the parent source of the Image. Used e.g. with subimages
Definition at line 94 of file image_location.h.
|
inlinevirtual |
Gets the width of the Image. Used e.g. with subimages
Definition at line 78 of file image_location.h.
|
inlinevirtual |
Gets the X shift of the Image
Definition at line 60 of file image_location.h.
|
inlinevirtual |
Gets the Y shift of the Image
yshift | The Y shift of the Image |
Definition at line 70 of file image_location.h.
|
virtual |
Compares two ResourceLocations This is needed as the locations should be stored in a std::map
Reimplemented from FIFE::ResourceLocation.
Definition at line 72 of file image_location.cpp.
References FIFE::ResourceLocation::getFilename().
|
virtual |
Compares two ResourceLocations for equality.
Reimplemented from FIFE::ResourceLocation.
Definition at line 43 of file image_location.cpp.
References FIFE::ResourceLocation::getFilename().
|
inlinevirtual |
Sets the height of the Image. Used e.g. with subimages
Definition at line 82 of file image_location.h.
|
inlinevirtual |
Sets the parent source of the Image. Used e.g. with subimages
Definition at line 90 of file image_location.h.
|
inlinevirtual |
Sets the width of the Image. Used e.g. with subimages
Definition at line 74 of file image_location.h.
|
inlinevirtual |
Sets the X shift of the Image.
xshift | The X shift of the Image |
Definition at line 55 of file image_location.h.
|
inlinevirtual |
Sets the Y shift of the Image
yshift | The Y shift of the Image |
Definition at line 65 of file image_location.h.