FIFE
|
All FIFE related code is in this namespace. More...
Namespaces | |
OGG_cb | |
Classes | |
struct | SoundBufferEntry |
class | SoundClip |
Class to handle the buffers of an audio file. More... | |
class | SoundClipManager |
SoundClipManager. More... | |
class | SoundDecoder |
class | SoundEmitter |
The class for playing audio files. More... | |
class | SoundManager |
class | IEngineChangeListener |
class | Engine |
Engine acts as a controller to the whole system Responsibilities of the engine are: More... | |
class | EngineSettings |
This class defines the engine settings on engine init. More... | |
class | Event |
Base class for all events. More... | |
class | InputEvent |
Base class for input events (like mouse and keyboard) More... | |
class | Command |
Class for commands Commands are arbitrary events e.g. More... | |
class | ICommandController |
Controller provides a way to receive events from the system Using this interface, clients can subscribe themselves to receive events Also command sending is possible. More... | |
class | ICommandListener |
Listener of command events. More... | |
class | EventManager |
Event Manager manages all events related to FIFE. More... | |
class | IKeyController |
Controller provides a way to receive events from the system Using this interface, clients can subscribe themselves to receive events. More... | |
class | IKeyFilter |
Controller provides a way to receive events from the system Using this interface, clients can subscribe themselves to receive events. More... | |
class | IKeyListener |
Listener of key events. More... | |
class | Key |
Represents a key or a character. More... | |
class | KeyEvent |
Class for key events. More... | |
class | IMouseController |
Controller provides a way to receive events from the system Using this interface, clients can subscribe themselves to receive events. More... | |
class | IMouseListener |
Listener of mouse events. More... | |
class | MouseEvent |
Class for mouse events. More... | |
class | ISdlEventController |
Controller provides a way to receive events from the system Using this interface, clients can subscribe themselves to receive events. More... | |
class | ISdlEventListener |
Listener of SDL events. More... | |
class | IEventSource |
Representation of event source (a thing sending events) More... | |
class | GuiFont |
class | GuiImage |
class | GuiImageLoader |
class | OpenGLGuiGraphics |
Overrides Guichan Graphics to enable usage of normal fife images & related facilities. More... | |
class | OpenGLeGuiGraphics |
Overrides Guichan Graphics to enable usage of normal fife images & related facilities. More... | |
class | SdlGuiGraphics |
Overrides Guichan Graphics to enable usage of normal fife images & related facilities. More... | |
class | CommandLine |
A Command line widget. More... | |
class | ConsoleExecuter |
Console executer is listener interface for console activity. More... | |
class | Console |
Ingame Console. More... | |
class | GUIChanManager |
class | IGUIManager |
class | OggLoader |
class | SoundDecoderOgg |
class | AnimationLoader |
struct | AtlasData |
class | Atlas |
class | AtlasLoader |
class | IAnimationLoader |
class | IAtlasLoader |
class | IMapLoader |
Interface class that all map loaders should derive from. More... | |
class | IObjectLoader |
Interface class that all object loaders should derive from. More... | |
class | MapLoader |
class | ObjectLoader |
class | PercentDoneListener |
class | PercentDoneCallback |
class | ImageLoader |
ImageLoader for some basic formats like jpeg, png etc. More... | |
class | Action |
class | CellGrid |
class | HexGrid |
class | SquareGrid |
class | IPather |
class | IVisual |
class | Object |
Object class. More... | |
class | TimeProvider |
Timeprovider is an utility providing time management functionality You can have hierarchy of time providers, whose multiplier can be changed independently. More... | |
class | Model |
A model is a facade for everything in the model. More... | |
class | TransitionInfo |
Simple class to hold the data for transistions. More... | |
class | CellDeleteListener |
Listener interface for deletions happening on a cell, used for transistions. More... | |
class | CellChangeListener |
Listener interface for changes happening on a cell. More... | |
class | Cell |
A basic cell on a CellCache. More... | |
class | CellCacheChangeListener |
class | ZoneCellChangeListener |
class | Zone |
A Zone is an abstract depiction of a CellCache or of a part of it. More... | |
class | CellCache |
A CellCache is an abstract depiction of one or a few layers and contains additional information, such as different cost and speed and so on. More... | |
class | ActionInfo |
class | SayInfo |
class | InstanceActionListener |
class | InstanceChangeListener |
class | InstanceDeleteListener |
class | Instance |
An Instance is an "instantiation" of an Object at a Location. More... | |
class | InstanceListCollector |
class | InstanceTree |
class | LayerChangeListener |
Listener interface for changes happening on a layer. More... | |
class | Layer |
A basic layer on a map. More... | |
class | Location |
class | MapChangeListener |
Listener interface for changes happening on map. More... | |
class | Map |
A container of Layer(s) . More... | |
class | NodeInstanceDeleteListener |
class | RendererNode |
class | Route |
A basic route. More... | |
class | MultiLayerSearch |
MultiLayerSearch using A*. More... | |
class | RoutePather |
class | RoutePatherSearch |
RoutePatherSearch using A*. More... | |
class | SingleLayerSearch |
SingleLayerSearch using A*. More... | |
class | IAnimationSaver |
class | IAtlasSaver |
class | IMapSaver |
Interface class that all map savers should derive from. More... | |
class | IObjectSaver |
Interface class that all object savers should derive from. More... | |
class | MapSaver |
default map saver class implementing the IMapSaver interface More... | |
class | Exception |
Exception base class. More... | |
class | FifeClass |
Base class for all fife classes Used e.g. More... | |
class | SharedPtr |
shared pointer implementation to provide automatic reference counting and deletion when last reference falls out of scope. More... | |
class | StaticSingleton |
The "classic" Singleton. More... | |
class | DynamicSingleton |
Another Singleton. More... | |
class | LMsg |
Helper class to create log strings out from separate parts Usage: LMsg("some text") << variable << ", " << other variable. More... | |
class | LogManager |
Logmanager takes care of log filtering and output direction. More... | |
class | Logger |
Create a Logger instance to communicate with LogManager Logger stores information about the current module thus reducing the typing needed for individual traces Common way of doing things is to instantiate a static Logger on top of .cpp file and then use that in .cpp-file's methods. More... | |
struct | pprint |
Helper for printing a pointer. More... | |
struct | float_traits |
struct | float_traits< float > |
struct | float_traits< double > |
class | Math |
class | Matrix |
Minimal matrix class to assist in view 3d calculations. More... | |
class | IResourceLoader |
class | IResource |
class | IResourceManager |
IResourceManager. More... | |
class | PointType2D |
A 2D Point. More... | |
class | PointType3D |
A 3D Point. More... | |
class | PriorityQueue |
A pq which stores index-value pairs for elements. More... | |
class | QuadNode |
QuadTree Node. More... | |
class | QuadTree |
Dynamic QuadTree A space partitioning tree automatically expanding to adjust to any object size put into the data structure. More... | |
class | RectType |
A Rectangle on screen. More... | |
class | TimeEvent |
Interface for events to be registered with TimeManager. More... | |
class | TimeManager |
Time Manager. More... | |
class | Timer |
Simple Timer class. More... | |
class | DAT1 |
VFSource for the Fallout1 DAT file format. More... | |
class | DAT2 |
VFSource for the Fallout2 DAT file format. More... | |
class | LZSSDecoder |
A helper class for unpacking LZSS encoded data. More... | |
class | RawDataDAT1 |
A subclass of RawDataMemSource, that fills itself with a FALLOUT1 .DAT file entry. More... | |
class | RawDataDAT2 |
A subclass of RawDataMemSource, that fills itself with a FALLOUT1 .DAT file entry. More... | |
class | DirectoryProvider |
Provider for OS directories. More... | |
class | RawData |
Used to access diffrent kinds of data. More... | |
class | IndexSaver |
class | RawDataFile |
A RawDataSource for a file on the host system. More... | |
class | RawDataMemSource |
Simpe RawDataSource that reads data from raw memory. More... | |
class | RawDataSource |
Abstract baseclass - provides data for RawData. More... | |
class | VFS |
the main VFS (virtual file system) class More... | |
class | VFSDirectory |
The most basic VFSSource for "normal" filesystems. More... | |
class | VFSSource |
VFSSource abstract baseclass. More... | |
class | VFSSourceProvider |
VFSSourceProvider abstract baseclass. More... | |
class | ZipFileSource |
struct | ZipContentType |
struct | ZipEntryData |
class | ZipNode |
class | ZipProvider |
A VFS provider for Zip archives. More... | |
class | ZipSource |
Implements a Zip archive file source. More... | |
class | ZipTree |
class | Animation |
Animation. More... | |
class | AtlasBlock |
class | AtlasPage |
class | AtlasBook |
class | Cursor |
Cursor class manages mouse cursor handling. More... | |
class | ScreenMode |
class | DeviceCaps |
class | FontBase |
Abstract Font Base Class Uses a pool for rendered strings. More... | |
class | IFont |
Pure abstract Font interface. More... | |
class | ImageFontBase |
ImageFont base class. More... | |
class | SubImageFont |
Imagefont that is able to read glyphs from single image sheet, see e.g. More... | |
class | TextRenderPool |
Generic pool for rendered text Caches a number of Images with text, as rendered by a Font. More... | |
class | TrueTypeFont |
SDL True Type Font implementation of Font. More... | |
class | Image |
Base Class for Images. More... | |
class | ImageManager |
ImageManager. More... | |
class | GLImage |
Implements an Image using OpenGL. More... | |
class | RenderBackendOpenGL |
The main class of the OpenGL-based renderer. More... | |
class | GLeImage |
Implements an Image using experimental OpenGL. More... | |
class | RenderBackendOpenGLe |
The main class of the OpenGL-based experimental renderer. More... | |
class | RenderBackend |
Abstract interface for all the renderbackends. More... | |
class | RenderBackendSDL |
The main class of the SDL-based renderer. More... | |
struct | ColorRGB8 |
struct | ColorRGBA8 |
class | SDLImage |
The SDL implementation of the Image base class. More... | |
class | MapObserver |
class | Camera |
Camera describes properties of a view port shown in the main screen Main screen can have multiple cameras active simultanously Different cameras can have different properties, like location to shoot, zoom or tilt. More... | |
class | CacheLayerChangeListener |
class | InstanceDistanceSortCamera |
Comparison functions for sorting. More... | |
class | InstanceDistanceSortLocation |
class | InstanceDistanceSortCameraAndLocation |
class | CacheTreeCollector |
class | LayerCache |
class | IRendererListener |
RendererListener allows reaction to changes in renderer Having this implemented via callback mechanism should speed up the rendering a bit (e.g. More... | |
class | IRendererContainer |
Interface to class owning the renderers Used to get correct subclass of renderer in scripting side (via renderer's static method) More... | |
class | RendererBase |
Base class for all view renderers View renderer renders one aspect of the view shown on screen. More... | |
class | BlockingInfoRenderer |
class | CellRenderer |
class | CellSelectionRenderer |
CellSelectionRenderer renders a frame around selected cells. More... | |
class | CoordinateRenderer |
class | FloatingTextRenderer |
class | GenericRendererElementInfo |
class | GenericRendererLineInfo |
class | GenericRendererPointInfo |
class | GenericRendererTriangleInfo |
class | GenericRendererQuadInfo |
class | GenericRendererVertexInfo |
class | GenericRendererImageInfo |
class | GenericRendererAnimationInfo |
class | GenericRendererTextInfo |
class | GenericRendererResizeInfo |
class | GenericRenderer |
class | GridRenderer |
class | InstanceRendererDeleteListener |
class | InstanceRenderer |
class | LightRendererElementInfo |
class | LightRendererImageInfo |
class | LightRendererAnimationInfo |
class | LightRendererSimpleLightInfo |
class | LightRendererResizeInfo |
class | LightRenderer |
class | OffRendererElementInfo |
class | OffRendererLineInfo |
class | OffRendererPointInfo |
class | OffRendererTriangleInfo |
class | OffRendererQuadInfo |
class | OffRendererVertexInfo |
class | OffRendererImageInfo |
class | OffRendererAnimationInfo |
class | OffRendererTextInfo |
class | OffRendererResizeInfo |
class | OffRenderer |
class | RenderVisitor |
class | QuadTreeRenderer |
class | RenderTarget |
class | TargetRenderer |
class | RenderItem |
class | Visual2DGfx |
Base class for all 2 dimensional visual classes Visual classes are extensions to visualize the stuff in model (e.g. More... | |
class | ObjectVisual |
Object visual contains data that is needed for visualizing objects. More... | |
class | InstanceVisual |
Instance visual contains data that is needed to visualize the instance on screen. More... | |
class | ActionVisual |
Action visual contains data that is needed to visualize different actions on screen. More... | |
Functions | |
template<typename T > | |
void | removeListener (std::deque< T > &vec, T &listener) |
template<typename T > | |
void | addListener (std::deque< T > &vec, T &listener) |
AtlasLoader * | createDefaultAtlasLoader (Model *model, VFS *vfs, ImageManager *imageManager) |
convenience function for creating the default fife atlas loader deleting the object returned from this function is the responsibility of the caller More... | |
MapLoader * | createDefaultMapLoader (Model *model, VFS *vfs, ImageManager *imageManager, RenderBackend *renderBackend) |
convenience function for creating the default fife map loader deleting the object returned from this function is the responsibility of the caller More... | |
uint32_t | scaleTime (float multiplier, uint32_t ticks) |
Utility function to calculate time scaling. More... | |
std::ostream & | operator<< (std::ostream &, const Location &) |
Stream output operator. More... | |
FIFE_EXCEPTION_DECL (SDLException,"SDL reported something bad") | |
FIFE_EXCEPTION_DECL (NotFound,"Something was searched, but not found") | |
FIFE_EXCEPTION_DECL (NotSet,"Something was not set correctly") | |
FIFE_EXCEPTION_DECL (IndexOverflow,"Someone tried to access a non-existing element") | |
FIFE_EXCEPTION_DECL (InvalidFormat,"Found invalid data") | |
FIFE_EXCEPTION_DECL (CannotOpenFile,"File couldn't be opened") | |
FIFE_EXCEPTION_DECL (InvalidConversion,"Tried an invalid conversion") | |
FIFE_EXCEPTION_DECL (NotSupported,"This action was not supported") | |
FIFE_EXCEPTION_DECL (NameClash,"A name or identifier is already in use") | |
FIFE_EXCEPTION_DECL (Duplicate,"A duplicate item was added, where this is not allowed") | |
FIFE_EXCEPTION_DECL (ScriptException,"Error related to scripting functionality") | |
FIFE_EXCEPTION_DECL (EventException,"Error related to event functionality") | |
FIFE_EXCEPTION_DECL (GuiException,"Error related to gui functionality") | |
FIFE_EXCEPTION_DECL (InconsistencyDetected,"An inconsistency in FIFE internals was detected. Please report this is a FIFE Bug.") | |
FIFE_EXCEPTION_DECL (OutOfMemory,"Buy more ram ;)") | |
template<typename T , typename U > | |
bool | operator== (const SharedPtr< T > &lhs, const SharedPtr< U > &rhs) |
provides equality operator for shared pointers More... | |
template<typename T , typename U > | |
bool | operator!= (const SharedPtr< T > &lhs, const SharedPtr< U > &rhs) |
provides inequality operator for shared pointers More... | |
template<class T , class U > | |
bool | operator< (SharedPtr< T > const &lhs, SharedPtr< U > const &rhs) |
provides less than operator for shared pointers More... | |
template<typename T > | |
SharedPtr< T > | make_shared (T *ptr) |
convenience function for making a shared pointer can be used anytime a shared pointer should be created More... | |
int32_t | makeInt32 (const std::string &str) |
IntVector | tokenize (const std::string &str, char delim, char group) |
int32_t | getIndexByAngle (int32_t angle, const type_angle2id &angle2id, int32_t &closestMatchingAngle) |
Returns id for given angle from angle2id map in case there are no elements in the map, negative value is returned. More... | |
int32_t | getAngleBetween (const Location &loc1, const Location &loc2) |
Gets angle of vector defined by given locations. More... | |
Location | getFacing (const Location &loc, const int32_t angle) |
Gets facing location defined by given angle and location. More... | |
int32_t | getAngleBetween (const ExactModelCoordinate &emc1, const ExactModelCoordinate &emc2) |
Gets angle of vector defined by given map coordinates. More... | |
ExactModelCoordinate | getFacing (const ExactModelCoordinate &emc, const int32_t angle) |
Gets facing map coordinate defined by given angle and map coordinate. More... | |
unsigned | nextPow2 (unsigned x) |
Returns the next higher power of 2 based on the passed argument. More... | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const Matrix< T > &m) |
Print coords of the Matrix to a stream. More... | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const PointType2D< T > &p) |
Print coords of the Point to a stream. More... | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const PointType3D< T > &p) |
Print coords of the Point to a stream. More... | |
Point | doublePt2intPt (DoublePoint pt) |
Convert from 2D double point to 2D int32_t point. More... | |
Point3D | doublePt2intPt (DoublePoint3D pt) |
Convert from 3D double point to 3D int32_t point. More... | |
DoublePoint | intPt2doublePt (Point pt) |
Convert from 2D int32_t point to 2D double point. More... | |
DoublePoint3D | intPt2doublePt (Point3D pt) |
Convert from 3D int32_t point to 3D double point. More... | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const RectType< T > &r) |
Stream output operator. More... | |
const char * | getVersion () |
int | getMajor () |
int | getMinor () |
int | getSubMinor () |
int | getRevision () |
bool | HasParentPath (const bfs::path &path) |
Helper function to determine if a path object has a parent path. More... | |
bfs::path | GetParentPath (const bfs::path &path) |
Helper function to retrieve a parent path object from a path object. More... | |
std::string | GetFilenameFromPath (const bfs::path &path) |
Helper function to retrieve the filename from a boost filesystem path filename is just the name of the file and any extension without a path. More... | |
std::string | GetFilenameFromDirectoryIterator (const bfs::directory_iterator &iter) |
Helper function to retrieve a filename string from a directory iterator. More... | |
std::string | GetPathIteratorAsString (const bfs::path::iterator &pathIter) |
Helper function to retrieve the path iterator in a string representation. More... | |
bfs::path | GetAbsolutePath (const std::string &path) |
Helper function to retrieve an absolute path from a given relative path. More... | |
bfs::path | GetAbsolutePath (const bfs::path &path) |
Helper function to retrieve an absolute path from a given relative path. More... | |
bool | HasExtension (const std::string &path) |
Helper function to check if a filename has an extension. More... | |
bool | HasExtension (const bfs::path &path) |
Helper function to check if a filename has an extension. More... | |
std::string | GetExtension (const std::string &path) |
Helper function to retrieve the extension. More... | |
std::string | GetExtension (const bfs::path &path) |
Helper function to retrieve the extension. More... | |
std::string | GetStem (const std::string &path) |
Helper function to retrieve the filename minus any extension. More... | |
std::string | GetStem (const bfs::path &path) |
Helper function to retrieve the filename minus any extension. More... | |
void | SDL_BlendRow_RGBA8_to_RGBA8 (const uint8_t *src, uint8_t *dst, uint32_t alpha, int32_t n) |
Blends one row of n pixels from src with n pixels of dst. More... | |
void | SDL_BlendRow_RGBA8_to_RGB8 (const uint8_t *src, uint8_t *dst, uint32_t alpha, int32_t n) |
Blends one row of n pixels from src with n pixels of dst. More... | |
void | SDL_BlendRow_RGBA8_to_RGB565 (const uint8_t *src, uint8_t *dst, uint32_t alpha, int32_t n) |
Blends one row of n pixels from src with n pixels of dst. More... | |
void | SDL_BlendRow_RGBA4_to_RGB565 (const uint8_t *src, uint8_t *dst, uint32_t alpha, int32_t n) |
Blends one row of n pixels from src with n pixels of dst. More... | |
void | SDL_BlitSurfaceWithAlpha (const SDL_Surface *src, const SDL_Rect *srcRect, SDL_Surface *dst, SDL_Rect *dstRect, uint8_t alpha) |
void | zoomSurface (SDL_Surface *src, SDL_Surface *dst) |
SDL_Surface * | getZoomedSurface (SDL_Surface *src, double zoomx, double zoomy) |
bool | nearlyEqual (float a, float b) |
bool | pipelineSort (const RendererBase *lhs, const RendererBase *rhs) |
bool | aboveThreshold (int32_t threshold, int32_t alpha, int32_t prev_alpha) |
Variables | |
static Logger | _log (LM_AUDIO) |
static Logger | _log (LM_RESMGR) |
const uint32_t | MAX_KEEP_IN_MEM = 3145728 |
const int16_t | BUFFER_NUM = 3 |
const uint32_t | BUFFER_LEN = 1048576 |
static Logger | _log (LM_AUDIO) |
static Logger | _log (LM_CONTROLLER) |
const float | MAXIMUM_VOLUME = 10.0 |
static Logger | _log (LM_EVTCHANNEL) |
static Logger | _log (LM_GUI) |
static Logger | _log (LM_CONSOLE) |
static Logger | _log (LM_NATIVE_LOADERS) |
const uint32_t | minPercent = 0 |
const uint32_t | maxPercent = 100 |
static Logger | _log (LM_CELLGRID) |
static Logger | _log (LM_HEXGRID) |
static const double | HEX_WIDTH = 1 |
static const double | HEX_TO_EDGE = HEX_WIDTH / 2 |
static const double | HEX_TO_CORNER = 0.5 / Mathd::Cos(Mathd::pi() / 6) |
static const double | HEX_EDGE_HALF = HEX_TO_CORNER * Mathd::Sin(Mathd::pi() / 6) |
static const double | VERTICAL_MULTIP = Mathd::Sqrt(HEX_WIDTH*HEX_WIDTH - HEX_TO_EDGE*HEX_TO_EDGE) |
static const double | VERTICAL_MULTIP_INV = 1 / VERTICAL_MULTIP |
static const double | HEX_EDGE_GRADIENT = 1 / Mathd::Sqrt(3) |
static Logger | _log (LM_SQUAREGRID) |
static Logger | _log (LM_MODEL) |
static Logger | _log (LM_STRUCTURES) |
static const double | MIN_CELL_Z = -9999999 |
static Logger | _log (LM_STRUCTURES) |
static Logger | _log (LM_INSTANCE) |
static Logger | _log (LM_STRUCTURES) |
static std::string | INVALID_LAYER_SET = "Cannot set layer coordinates, given layer is not initialized properly" |
static std::string | INVALID_LAYER_GET = "Cannot get layer coordinates, layer is not initialized properly" |
static Logger | _log (LM_VIEWVIEW) |
static Logger | _log (LM_STRUCTURES) |
static Logger | _log (LM_NATIVE_SAVERS) |
static Logger | _log (LM_EXCEPTION) |
const uint32_t | RMASK = 0xff000000 |
const uint32_t | GMASK = 0x00ff0000 |
const uint32_t | BMASK = 0x0000ff00 |
const uint32_t | AMASK = 0x000000ff |
const uint32_t | NULLMASK = 0x00000000 |
static const float | FLT_STD_EPSILON = std::numeric_limits<float>::epsilon() |
static const float | FLT_STD_MAX = std::numeric_limits<float>::max() |
static const float | FLT_ZERO_TOLERANCE = 1e-06f |
static const float | FLT_PI = 4.0f*std::atan(1.0f) |
static const float | FLT_TWO_PI = 2.0f*FLT_PI |
static const float | FLT_HALF_PI = 0.5f*FLT_PI |
static const float | FLT_INVERSE_PI = 1.0f/FLT_PI |
static const float | FLT_INVERSE_TWO_PI = 1.0f/FLT_TWO_PI |
static const float | FLT_DEG_TO_RAD = FLT_PI/180.0f |
static const float | FLT_RAD_TO_DEG = 180.0f/FLT_PI |
static const float | FLT_LOG_2 = std::log(2.0f) |
static const float | FLT_LOG_10 = std::log(10.0f) |
static const float | FLT_INV_LOG_2 = 1.0f/std::log(2.0f) |
static const float | FLT_INV_LOG_10 = 1.0f/std::log(10.0f) |
static const double | DBL_STD_EPSILON = std::numeric_limits<double>::epsilon() |
static const double | DBL_STD_MAX = std::numeric_limits<double>::max() |
static const double | DBL_ZERO_TOLERANCE = 1e-08 |
static const double | DBL_PI = 4.0*std::atan(1.0) |
static const double | DBL_TWO_PI = 2.0*DBL_PI |
static const double | DBL_HALF_PI = 0.5*DBL_PI |
static const double | DBL_INVERSE_PI = 1.0/DBL_PI |
static const double | DBL_INVERSE_TWO_PI = 1.0/DBL_TWO_PI |
static const double | DBL_DEG_TO_RAD = DBL_PI/180.0 |
static const double | DBL_RAD_TO_DEG = 180.0f/DBL_PI |
static const double | DBL_LOG_2 = std::log(2.0) |
static const double | DBL_LOG_10 = std::log(10.0) |
static const double | DBL_INV_LOG_2 = 1.0/std::log(2.0) |
static const double | DBL_INV_LOG_10 = 1.0/std::log(10.0) |
static const uint32_t | UNDEFINED_TIME_DELTA = 999999 |
static Logger | _log (LM_UTIL) |
static Logger | _log (LM_FO_LOADERS) |
static Logger | _log (LM_VFS) |
static const uint32_t | LF_HEADER = 0x04034b50 |
static const uint32_t | DE_HEADER = 0x08064b50 |
static const uint32_t | CF_HEADER = 0x02014b50 |
static Logger | _log (LM_LOADERS) |
static const int | max_quads_per_texbatch = 600 |
static const int | max_tex = 400 |
static const int | buffer_default_size = 4 * max_quads_per_texbatch * max_tex |
static Logger | _log (LM_CAMERA) |
const double | OVERDRAW = 1.5 |
static Logger | _log (LM_VIEW) |
const int32_t | DEFAULT_RENDERER_POSITION = 1000 |
static Logger | _log (LM_VIEWVIEW) |
const int32_t | MIN_COORD = -9999999 |
const int32_t | MAX_COORD = 9999999 |
const int32_t | STATIC_IMAGE_NOT_INITIALIZED = -2 |
All FIFE related code is in this namespace.
We currently only use one namespace for all our code with the exception of the gcn namespace which is used for our custom widgets.
Definition at line 52 of file ianimationloader.h.
typedef SharedPtr<Animation> FIFE::AnimationPtr |
Definition at line 157 of file animation.h.
Definition at line 46 of file ianimationsaver.h.
Definition at line 54 of file iatlasloader.h.
typedef SharedPtr<Atlas> FIFE::AtlasPtr |
Definition at line 36 of file iatlasloader.h.
Definition at line 45 of file iatlassaver.h.
typedef uint8_t FIFE::CellTypeInfo |
typedef uint8_t FIFE::CellVisualEffect |
typedef Matrix<double> FIFE::DoubleMatrix |
typedef PointType2D<double> FIFE::DoublePoint |
typedef PointType3D<double> FIFE::DoublePoint3D |
typedef RectType<double> FIFE::DoubleRect |
Definition at line 36 of file modelcoords.h.
typedef std::size_t FIFE::fifeid_t |
Definition at line 37 of file fifeclass.h.
typedef RectType<float> FIFE::FloatRect |
typedef SharedPtr<Image> FIFE::ImagePtr |
typedef uint32_t FIFE::InstanceChangeInfo |
Definition at line 73 of file instance.h.
typedef Matrix<int32_t> FIFE::IntMatrix |
typedef std::vector<int32_t> FIFE::IntVector |
Definition at line 32 of file stringutils.h.
typedef Math<double> FIFE::Mathd |
Definition at line 168 of file fife_math.h.
typedef Math<float> FIFE::Mathf |
Definition at line 167 of file fife_math.h.
typedef Point3D FIFE::ModelCoordinate |
Definition at line 37 of file modelcoords.h.
Definition at line 63 of file iobjectloader.h.
Definition at line 57 of file iobjectsaver.h.
typedef std::list< Location > FIFE::Path |
typedef PointType2D<int32_t> FIFE::Point |
typedef PointType3D<int32_t> FIFE::Point3D |
typedef boost::shared_ptr<RawData> FIFE::RawDataPtr |
typedef RectType<int32_t> FIFE::Rect |
typedef std::vector<RenderItem*> FIFE::RenderList |
Definition at line 82 of file renderitem.h.
typedef SharedPtr<RenderTarget> FIFE::RenderTargetPtr |
Definition at line 70 of file targetrenderer.h.
typedef std::size_t FIFE::ResourceHandle |
Definition at line 38 of file resource.h.
typedef SharedPtr<IResource> FIFE::ResourcePtr |
Definition at line 88 of file resource.h.
typedef uint8_t FIFE::RouteStatusInfo |
typedef Point3D FIFE::ScreenPoint |
typedef SharedPtr<SoundClip> FIFE::SoundClipPtr |
Definition at line 150 of file soundclip.h.
typedef std::map<Layer*, RenderList > FIFE::t_layer_to_instances |
typedef std::map<uint32_t, int32_t> FIFE::type_angle2id |
typedef uint8_t FIFE::VisitorShapeInfo |
Definition at line 92 of file instance.h.
typedef std::vector<ZipNode*> FIFE::ZipNodeContainer |
enum FIFE::CellType |
Defines different blocker types.
CTYPE_NO_BLOCKER means there is no blocker. CTYPE_STATIC_BLOCKER means there is at least one blocking instance which is static. CTYPE_DYNAMIC_BLOCKER means there is at least one blocking instance which is not static. CTYPE_CELL_NO_BLOCKER means there will never be a blocker. Regardless of the instances on this cell. CTYPE_CELL_BLOCKER means there will always be a blocker. Regardless of the instances on this cell.
Enumerator | |
---|---|
CTYPE_NO_BLOCKER | |
CTYPE_STATIC_BLOCKER | |
CTYPE_DYNAMIC_BLOCKER | |
CTYPE_CELL_NO_BLOCKER | |
CTYPE_CELL_BLOCKER |
enum FIFE::CellVisualType |
enum FIFE::CommandType |
Types for different commands.
Enumerator | |
---|---|
CMD_UNKNOWN | |
CMD_QUIT_GAME | |
CMD_MOUSE_FOCUS_GAINED | |
CMD_MOUSE_FOCUS_LOST | |
CMD_INPUT_FOCUS_GAINED | |
CMD_INPUT_FOCUS_LOST | |
CMD_APP_RESTORED | |
CMD_APP_ICONIFIED |
Definition at line 40 of file ec_commandids.h.
Types for different event sources.
Enumerator | |
---|---|
ES_ENGINE | |
ES_GUICHAN_WIDGET |
Definition at line 41 of file ec_eventsourcetypes.h.
enum FIFE::GLConstants |
Enumerator | |
---|---|
KEEP | |
ZERO | |
REPLACE | |
INCR | |
DECR | |
INVERT | |
NEVER | |
LESS | |
LEQUAL | |
GREATER | |
GEQUAL | |
EQUAL | |
NOTEQUAL | |
ALWAYS |
Definition at line 73 of file renderbackend.h.
Definition at line 59 of file instance.h.
enum FIFE::NativeCursor |
Defines some common native cursors between platforms.
In addition to these, you can use the values in: Windows: http://msdn.microsoft.com/en-us/library/ms648391(VS.85).aspx X11: http://fife.pastebin.com/f5b89dd6b
Enumerator | |
---|---|
NC_ARROW | |
NC_IBEAM | |
NC_WAIT | |
NC_CROSS | |
NC_UPARROW | |
NC_RESIZENW | |
NC_RESIZESE | |
NC_RESIZESW | |
NC_RESIZENE | |
NC_RESIZEE | |
NC_RESIZEW | |
NC_RESIZEN | |
NC_RESIZES | |
NC_RESIZEALL | |
NC_NO | |
NC_HAND | |
NC_APPSTARTING | |
NC_HELP |
Defines how pathing can be performed on this layer.
CELL_EDGES_ONLY allows pather to use only cell edges when moving instances from cell to cell on map CELL_EDGES_AND_DIAGONALS allows pather to use both cell edges and diagonals when moving instances from cell to cell on map
Enumerator | |
---|---|
CELL_EDGES_ONLY | |
CELL_EDGES_AND_DIAGONALS |
enum FIFE::PriorityType |
enum FIFE::RouteStatus |
Defines different route status types for the search.
ROUTE_CREATED means, route is created but has no path and no search. ROUTE_SEARCHING means, route is created but has no path and it is still being sought. ROUTE_SEARCHED means, route is created and the search completed, on the next step the route is solved. ROUTE_SOLVED means that a path could be found. ROUTE_FAILED means the search failed. No path could be found.
Enumerator | |
---|---|
ROUTE_CREATED | |
ROUTE_SEARCHING | |
ROUTE_SEARCHED | |
ROUTE_SOLVED | |
ROUTE_FAILED |
Different types of audio-file positions.
Enumerator | |
---|---|
SD_SAMPLE_POS | |
SD_TIME_POS | |
SD_BYTE_POS |
Definition at line 44 of file soundclip.h.
Enumerator | |
---|---|
ITYPE_NO_SHAPE | |
ITYPE_QUAD_SHAPE | |
ITYPE_CIRCLE_SHAPE |
Definition at line 87 of file instance.h.
|
inline |
Definition at line 477 of file instancerenderer.cpp.
Referenced by FIFE::InstanceRenderer::bindOutline().
void FIFE::addListener | ( | std::deque< T > & | vec, |
T & | listener | ||
) |
Definition at line 74 of file eventmanager.cpp.
AtlasLoader * FIFE::createDefaultAtlasLoader | ( | Model * | model, |
VFS * | vfs, | ||
ImageManager * | imageManager | ||
) |
convenience function for creating the default fife atlas loader deleting the object returned from this function is the responsibility of the caller
Definition at line 458 of file atlasloader.cpp.
MapLoader * FIFE::createDefaultMapLoader | ( | Model * | model, |
VFS * | vfs, | ||
ImageManager * | imageManager, | ||
RenderBackend * | renderBackend | ||
) |
convenience function for creating the default fife map loader deleting the object returned from this function is the responsibility of the caller
Definition at line 815 of file maploader.cpp.
|
inline |
Convert from 2D double point to 2D int32_t point.
Definition at line 330 of file point.h.
References FIFE::PointType2D< T >::x, and FIFE::PointType2D< T >::y.
Referenced by FIFE::RoutePather::followRoute(), FIFE::Location::getLayerCoordinates(), FIFE::Camera::toScreenCoordinates(), and FIFE::Camera::virtualScreenToScreen().
|
inline |
Convert from 3D double point to 3D int32_t point.
Definition at line 337 of file point.h.
References FIFE::PointType3D< T >::x, FIFE::PointType3D< T >::y, and FIFE::PointType3D< T >::z.
FIFE::FIFE_EXCEPTION_DECL | ( | SDLException | , |
"SDL reported something bad" | |||
) |
FIFE::FIFE_EXCEPTION_DECL | ( | NotFound | , |
"Something was | searched, | ||
but not found" | |||
) |
FIFE::FIFE_EXCEPTION_DECL | ( | NotSet | , |
"Something was not set correctly" | |||
) |
FIFE::FIFE_EXCEPTION_DECL | ( | IndexOverflow | , |
"Someone tried to access a non-existing element" | |||
) |
FIFE::FIFE_EXCEPTION_DECL | ( | InvalidFormat | , |
"Found invalid data" | |||
) |
FIFE::FIFE_EXCEPTION_DECL | ( | CannotOpenFile | , |
"File couldn't be opened" | |||
) |
FIFE::FIFE_EXCEPTION_DECL | ( | InvalidConversion | , |
"Tried an invalid conversion" | |||
) |
FIFE::FIFE_EXCEPTION_DECL | ( | NotSupported | , |
"This action was not supported" | |||
) |
FIFE::FIFE_EXCEPTION_DECL | ( | NameClash | , |
"A name or identifier is already in use" | |||
) |
FIFE::FIFE_EXCEPTION_DECL | ( | Duplicate | , |
"A duplicate item was | added, | ||
where this is not allowed" | |||
) |
FIFE::FIFE_EXCEPTION_DECL | ( | ScriptException | , |
"Error related to scripting functionality" | |||
) |
FIFE::FIFE_EXCEPTION_DECL | ( | EventException | , |
"Error related to event functionality" | |||
) |
FIFE::FIFE_EXCEPTION_DECL | ( | GuiException | , |
"Error related to gui functionality" | |||
) |
FIFE::FIFE_EXCEPTION_DECL | ( | InconsistencyDetected | , |
"An inconsistency in FIFE internals was detected. Please report this is a FIFE Bug." | |||
) |
FIFE::FIFE_EXCEPTION_DECL | ( | OutOfMemory | , |
"Buy more ram ; | |||
) |
bfs::path FIFE::GetAbsolutePath | ( | const std::string & | path | ) |
Helper function to retrieve an absolute path from a given relative path.
path | std::string object |
Definition at line 150 of file fife_boost_filesystem.cpp.
bfs::path FIFE::GetAbsolutePath | ( | const bfs::path & | path | ) |
Helper function to retrieve an absolute path from a given relative path.
path | boost filesystem path object |
Definition at line 154 of file fife_boost_filesystem.cpp.
int32_t FIFE::getAngleBetween | ( | const Location & | loc1, |
const Location & | loc2 | ||
) |
Gets angle of vector defined by given locations.
Definition at line 98 of file angles.cpp.
References FIFE::Math< T >::ATan2(), FIFE::Layer::getCellGrid(), FIFE::Location::getLayer(), FIFE::Location::getMapCoordinates(), FIFE::CellGrid::getRotation(), FIFE::Math< T >::pi(), FIFE::PointType3D< T >::x, and FIFE::PointType3D< T >::y.
Referenced by FIFE::RoutePather::followRoute(), FIFE::Instance::setFacingLocation(), FIFE::SingleLayerSearch::updateSearch(), and FIFE::MultiLayerSearch::updateSearch().
int32_t FIFE::getAngleBetween | ( | const ExactModelCoordinate & | emc1, |
const ExactModelCoordinate & | emc2 | ||
) |
Gets angle of vector defined by given map coordinates.
Definition at line 125 of file angles.cpp.
References FIFE::Math< T >::ATan2(), FIFE::Math< T >::pi(), FIFE::PointType3D< T >::x, and FIFE::PointType3D< T >::y.
std::string FIFE::GetExtension | ( | const std::string & | path | ) |
Helper function to retrieve the extension.
path | the input path string |
Definition at line 184 of file fife_boost_filesystem.cpp.
Referenced by HasExtension().
std::string FIFE::GetExtension | ( | const bfs::path & | path | ) |
Helper function to retrieve the extension.
path | the input path object |
Definition at line 188 of file fife_boost_filesystem.cpp.
Location FIFE::getFacing | ( | const Location & | loc, |
const int32_t | angle | ||
) |
Gets facing location defined by given angle and location.
Definition at line 113 of file angles.cpp.
References FIFE::Math< T >::Cos(), FIFE::Layer::getCellGrid(), FIFE::Location::getLayer(), FIFE::Location::getMapCoordinates(), FIFE::CellGrid::getRotation(), FIFE::Math< T >::pi(), FIFE::Location::setMapCoordinates(), FIFE::Math< T >::Sin(), FIFE::PointType3D< T >::x, and FIFE::PointType3D< T >::y.
Referenced by FIFE::Instance::getFacingLocation().
ExactModelCoordinate FIFE::getFacing | ( | const ExactModelCoordinate & | emc, |
const int32_t | angle | ||
) |
Gets facing map coordinate defined by given angle and map coordinate.
Definition at line 137 of file angles.cpp.
References FIFE::Math< T >::Cos(), FIFE::Math< T >::pi(), FIFE::Math< T >::Sin(), FIFE::PointType3D< T >::x, and FIFE::PointType3D< T >::y.
std::string FIFE::GetFilenameFromDirectoryIterator | ( | const bfs::directory_iterator & | iter | ) |
Helper function to retrieve a filename string from a directory iterator.
iter | boost filesystem directory_iterator object |
Definition at line 107 of file fife_boost_filesystem.cpp.
Referenced by FIFE::VFSDirectory::list().
std::string FIFE::GetFilenameFromPath | ( | const bfs::path & | path | ) |
Helper function to retrieve the filename from a boost filesystem path filename is just the name of the file and any extension without a path.
path | boost filesystem path object |
Definition at line 87 of file fife_boost_filesystem.cpp.
int32_t FIFE::getIndexByAngle | ( | int32_t | angle, |
const type_angle2id & | angle2id, | ||
int32_t & | closestMatchingAngle | ||
) |
Returns id for given angle from angle2id map in case there are no elements in the map, negative value is returned.
Definition at line 37 of file angles.cpp.
Referenced by FIFE::ActionVisual::getAnimationByAngle(), FIFE::ObjectVisual::getClosestMatchingAngle(), FIFE::Object::getMultiObjectCoordinates(), FIFE::Object::getMultiPartCoordinates(), FIFE::Object::getRestrictedRotation(), and FIFE::ObjectVisual::getStaticImageIndexByAngle().
|
inline |
Definition at line 56 of file version.h.
References FIFE_MAJOR_VERSION.
|
inline |
Definition at line 60 of file version.h.
References FIFE_MINOR_VERSION.
bfs::path FIFE::GetParentPath | ( | const bfs::path & | path | ) |
Helper function to retrieve a parent path object from a path object.
path | boost filesystem path object |
Definition at line 79 of file fife_boost_filesystem.cpp.
Referenced by FIFE::AnimationLoader::load(), FIFE::ObjectLoader::load(), FIFE::MapLoader::load(), and FIFE::AtlasLoader::load().
std::string FIFE::GetPathIteratorAsString | ( | const bfs::path::iterator & | pathIter | ) |
Helper function to retrieve the path iterator in a string representation.
pathIter | the iterator to get the string from |
Definition at line 134 of file fife_boost_filesystem.cpp.
Referenced by FIFE::ZipTree::addNode(), and FIFE::ZipTree::getNode().
std::string FIFE::GetStem | ( | const std::string & | path | ) |
Helper function to retrieve the filename minus any extension.
path | the input path string |
Definition at line 196 of file fife_boost_filesystem.cpp.
std::string FIFE::GetStem | ( | const bfs::path & | path | ) |
Helper function to retrieve the filename minus any extension.
path | the input path object |
Definition at line 200 of file fife_boost_filesystem.cpp.
References HasExtension().
|
inline |
Definition at line 64 of file version.h.
References FIFE_SUBMINOR_VERSION.
|
inline |
Definition at line 52 of file version.h.
References FIFE_VERSION_STRING, and FIFE_XSTR.
SDL_Surface* FIFE::getZoomedSurface | ( | SDL_Surface * | src, |
double | zoomx, | ||
double | zoomy | ||
) |
Definition at line 298 of file sdlimage.cpp.
References AMASK, BMASK, GMASK, RMASK, and zoomSurface().
Referenced by FIFE::SDLImage::render().
bool FIFE::HasExtension | ( | const std::string & | path | ) |
Helper function to check if a filename has an extension.
path | boost filesystem path object |
Definition at line 162 of file fife_boost_filesystem.cpp.
Referenced by FIFE::ZipNode::getChild(), GetStem(), FIFE::ZipNode::removeChild(), and FIFE::ZipNode::ZipNode().
bool FIFE::HasExtension | ( | const bfs::path & | path | ) |
Helper function to check if a filename has an extension.
path | boost filesystem path object |
Definition at line 166 of file fife_boost_filesystem.cpp.
References GetExtension().
bool FIFE::HasParentPath | ( | const bfs::path & | path | ) |
Helper function to determine if a path object has a parent path.
path | boost filesystem path object |
Definition at line 71 of file fife_boost_filesystem.cpp.
Referenced by FIFE::AnimationLoader::load(), FIFE::ObjectLoader::load(), FIFE::MapLoader::load(), and FIFE::AtlasLoader::load().
|
inline |
Convert from 2D int32_t point to 2D double point.
Definition at line 344 of file point.h.
References FIFE::PointType2D< T >::x, and FIFE::PointType2D< T >::y.
Referenced by FIFE::CellCache::addInteractOnRuntime(), FIFE::SingleLayerSearch::calcPath(), FIFE::CellCache::createCells(), FIFE::CellCache::removeInteractOnRuntime(), FIFE::BlockingInfoRenderer::render(), FIFE::CellRenderer::render(), FIFE::CellCache::resize(), FIFE::Camera::screenToVirtualScreen(), FIFE::Location::setLayerCoordinates(), FIFE::CellGrid::toMapCoordinates(), and FIFE::Camera::toMapCoordinates().
|
inline |
Convert from 3D int32_t point to 3D double point.
Definition at line 351 of file point.h.
References FIFE::PointType3D< T >::x, FIFE::PointType3D< T >::y, and FIFE::PointType3D< T >::z.
SharedPtr<T> FIFE::make_shared | ( | T * | ptr | ) |
convenience function for making a shared pointer can be used anytime a shared pointer should be created
Definition at line 275 of file sharedptr.h.
int FIFE::makeInt32 | ( | const std::string & | str | ) |
Definition at line 32 of file stringutils.cpp.
Referenced by tokenize().
bool FIFE::nearlyEqual | ( | float | a, |
float | b | ||
) |
Definition at line 331 of file sdlimage.cpp.
References ABS.
Referenced by FIFE::SDLImage::render().
|
inline |
Returns the next higher power of 2 based on the passed argument.
Definition at line 292 of file fife_math.h.
Referenced by FIFE::GLImage::generateGLSharedTexture(), FIFE::GLeImage::generateGLSharedTexture(), FIFE::GLImage::generateGLTexture(), and FIFE::GLeImage::generateGLTexture().
|
inline |
provides inequality operator for shared pointers
Definition at line 260 of file sharedptr.h.
References FIFE::SharedPtr< T >::get().
|
inline |
provides less than operator for shared pointers
Definition at line 267 of file sharedptr.h.
std::ostream& FIFE::operator<< | ( | std::ostream & | os, |
const RectType< T > & | r | ||
) |
std::ostream & FIFE::operator<< | ( | std::ostream & | , |
const Location & | |||
) |
Stream output operator.
Useful for debugging purposes
Definition at line 164 of file location.cpp.
References FIFE::Location::getExactLayerCoordinates(), FIFE::PointType3D< T >::x, and FIFE::PointType3D< T >::y.
std::ostream& FIFE::operator<< | ( | std::ostream & | os, |
const PointType2D< T > & | p | ||
) |
std::ostream& FIFE::operator<< | ( | std::ostream & | os, |
const PointType3D< T > & | p | ||
) |
std::ostream& FIFE::operator<< | ( | std::ostream & | os, |
const Matrix< T > & | m | ||
) |
|
inline |
provides equality operator for shared pointers
Definition at line 253 of file sharedptr.h.
References FIFE::SharedPtr< T >::get().
bool FIFE::pipelineSort | ( | const RendererBase * | lhs, |
const RendererBase * | rhs | ||
) |
Definition at line 673 of file camera.cpp.
References FIFE::RendererBase::getPipelinePosition().
Referenced by FIFE::Camera::addRenderer(), FIFE::Camera::onRendererEnabledChanged(), and FIFE::Camera::onRendererPipelinePositionChanged().
void FIFE::removeListener | ( | std::deque< T > & | vec, |
T & | listener | ||
) |
Definition at line 69 of file eventmanager.cpp.
uint32_t FIFE::scaleTime | ( | float | multiplier, |
uint32_t | ticks | ||
) |
Utility function to calculate time scaling.
Mostly done to avoid littering other code with related casting
Definition at line 73 of file timeprovider.cpp.
Referenced by FIFE::LightRendererAnimationInfo::render(), FIFE::OffRendererAnimationInfo::render(), FIFE::GenericRendererAnimationInfo::render(), and FIFE::Camera::renderOverlay().
void FIFE::SDL_BlendRow_RGBA4_to_RGB565 | ( | const uint8_t * | src, |
uint8_t * | dst, | ||
uint32_t | alpha, | ||
int32_t | n | ||
) |
Blends one row of n pixels from src with n pixels of dst.
src | Source. |
dst | Destiny. |
alpha | Level of alphablending. |
n | Number of pixels. |
< upgrade to range 0-255
multiplying by alpha resulted in shift.
Definition at line 102 of file sdlblendingfunctions.cpp.
Referenced by SDL_BlitSurfaceWithAlpha().
void FIFE::SDL_BlendRow_RGBA8_to_RGB565 | ( | const uint8_t * | src, |
uint8_t * | dst, | ||
uint32_t | alpha, | ||
int32_t | n | ||
) |
Blends one row of n pixels from src with n pixels of dst.
src | Source. |
dst | Destiny. |
alpha | Level of alphablending. |
n | Number of pixels. |
Definition at line 79 of file sdlblendingfunctions.cpp.
References FIFE::ColorRGBA8::a, FIFE::ColorRGBA8::b, FIFE::ColorRGBA8::g, and FIFE::ColorRGBA8::r.
Referenced by SDL_BlitSurfaceWithAlpha().
void FIFE::SDL_BlendRow_RGBA8_to_RGB8 | ( | const uint8_t * | src, |
uint8_t * | dst, | ||
uint32_t | alpha, | ||
int32_t | n | ||
) |
Blends one row of n pixels from src with n pixels of dst.
src | Source. |
dst | Destiny. |
alpha | Level of alphablending. |
n | Number of pixels. |
Definition at line 61 of file sdlblendingfunctions.cpp.
References FIFE::ColorRGBA8::a, FIFE::ColorRGB8::b, FIFE::ColorRGBA8::b, FIFE::ColorRGB8::g, FIFE::ColorRGBA8::g, FIFE::ColorRGB8::r, and FIFE::ColorRGBA8::r.
Referenced by SDL_BlitSurfaceWithAlpha().
void FIFE::SDL_BlendRow_RGBA8_to_RGBA8 | ( | const uint8_t * | src, |
uint8_t * | dst, | ||
uint32_t | alpha, | ||
int32_t | n | ||
) |
Blends one row of n pixels from src with n pixels of dst.
src | Source. |
dst | Destiny. |
alpha | Level of alphablending. |
n | Number of pixels. |
Definition at line 42 of file sdlblendingfunctions.cpp.
References FIFE::ColorRGBA8::a, FIFE::ColorRGBA8::b, FIFE::ColorRGBA8::g, and FIFE::ColorRGBA8::r.
Referenced by SDL_BlitSurfaceWithAlpha().
void FIFE::SDL_BlitSurfaceWithAlpha | ( | const SDL_Surface * | src, |
const SDL_Rect * | srcRect, | ||
SDL_Surface * | dst, | ||
SDL_Rect * | dstRect, | ||
uint8_t | alpha | ||
) |
Definition at line 101 of file sdlimage.cpp.
References SDL_BlendRow_RGBA4_to_RGB565(), SDL_BlendRow_RGBA8_to_RGB565(), SDL_BlendRow_RGBA8_to_RGB8(), and SDL_BlendRow_RGBA8_to_RGBA8().
Referenced by FIFE::SDLImage::render().
IntVector FIFE::tokenize | ( | const std::string & | str, |
char | delim, | ||
char | group | ||
) |
Definition at line 38 of file stringutils.cpp.
References makeInt32().
Referenced by FIFE::MapLoader::load().
void FIFE::zoomSurface | ( | SDL_Surface * | src, |
SDL_Surface * | dst | ||
) |
Definition at line 233 of file sdlimage.cpp.
Referenced by getZoomedSurface().
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
Referenced by FIFE::Console::action(), FIFE::SoundClipManager::add(), FIFE::ImageManager::add(), FIFE::InstanceTree::addInstance(), FIFE::Layer::addInstance(), FIFE::VFS::addNewSource(), FIFE::VFS::addProvider(), FIFE::Camera::attach(), FIFE::SoundEmitter::attachSoundClip(), FIFE::ImageManager::create(), FIFE::SoundClipManager::create(), FIFE::VFS::createSource(), FIFE::DAT1::DAT1(), FIFE::DAT2::DAT2(), FIFE::Engine::destroy(), FIFE::OpenGLGuiGraphics::drawText(), FIFE::OpenGLeGuiGraphics::drawText(), FIFE::Console::execute(), FIFE::EventManager::fillKeyEvent(), FIFE::Instance::finalizeAction(), FIFE::DAT2::findFileEntry(), FIFE::Instance::follow(), FIFE::SoundClipManager::free(), FIFE::ImageManager::free(), FIFE::SoundClipManager::freeAll(), FIFE::ImageManager::freeAll(), FIFE::SoundClipManager::freeUnreferenced(), FIFE::ImageManager::freeUnreferenced(), FIFE::SoundClipManager::get(), FIFE::ImageManager::get(), FIFE::RendererNode::getAttachedInstance(), FIFE::RendererNode::getAttachedLayer(), FIFE::RendererNode::getAttachedLocation(), FIFE::RendererNode::getAttachedPoint(), FIFE::RendererNode::getCalculatedPoint(), FIFE::Model::getCellGrid(), FIFE::SoundEmitter::getCursor(), FIFE::RendererNode::getOffsetLocation(), FIFE::RendererNode::getOffsetPoint(), FIFE::Model::getPather(), FIFE::GuiImage::getPixel(), FIFE::ImageManager::getPtr(), FIFE::SoundClipManager::getResourceHandle(), FIFE::ImageManager::getResourceHandle(), FIFE::VFS::getSourceForFile(), FIFE::HexGrid::getVertices(), FIFE::HexGrid::HexGrid(), FIFE::SoundManager::init(), FIFE::Engine::init(), FIFE::ObjectLoader::isLoadable(), FIFE::MapLoader::isLoadable(), FIFE::RawData::littleEndian(), FIFE::AnimationLoader::load(), FIFE::ObjectLoader::load(), FIFE::MapLoader::load(), FIFE::AtlasLoader::load(), FIFE::SoundClipManager::load(), FIFE::ImageManager::load(), FIFE::SoundClipManager::loadUnreferenced(), FIFE::ImageManager::loadUnreferenced(), FIFE::Instance::move(), FIFE::Camera::onRendererEnabledChanged(), FIFE::GUIChanManager::onSdlEvent(), FIFE::ZipSource::open(), FIFE::VFS::open(), FIFE::SDLImage::optimize(), FIFE::TimeManager::printStatistics(), FIFE::CellGrid::ptInTriangle(), FIFE::GuiImage::putPixel(), FIFE::DAT2::readFileEntry(), FIFE::ZipSource::readFileToIndex(), FIFE::RawData::readInto(), FIFE::SoundClipManager::reload(), FIFE::ImageManager::reload(), FIFE::SoundClipManager::remove(), FIFE::ImageManager::remove(), FIFE::Instance::removeActionListener(), FIFE::SoundClipManager::removeAll(), FIFE::ImageManager::removeAll(), FIFE::Instance::removeChangeListener(), FIFE::Instance::removeDeleteListener(), FIFE::InstanceTree::removeInstance(), FIFE::Cell::removeInstance(), FIFE::SoundClipManager::removeUnreferenced(), FIFE::ImageManager::removeUnreferenced(), FIFE::GridRenderer::render(), FIFE::InstanceRenderer::render(), FIFE::QuadTreeRenderer::render(), FIFE::CellSelectionRenderer::render(), FIFE::BlockingInfoRenderer::render(), FIFE::CellRenderer::render(), FIFE::EngineSettings::setBitsPerPixel(), FIFE::SoundEmitter::setCursor(), FIFE::EngineSettings::setInitialVolume(), FIFE::EngineSettings::setLightingModel(), FIFE::Cursor::setNativeCursor(), FIFE::RendererNode::setRelative(), FIFE::EngineSettings::setRenderBackend(), FIFE::RenderBackendSDL::setScreenMode(), FIFE::RenderBackendOpenGL::setScreenMode(), FIFE::VFSSourceProvider::setVFS(), FIFE::SoundEmitter::SoundEmitter(), FIFE::SubImageFont::SubImageFont(), FIFE::HexGrid::toExactLayerCoordinates(), FIFE::HexGrid::toLayerCoordinates(), FIFE::HexGrid::toMapCoordinates(), FIFE::GUIChanManager::translateKeyEvent(), FIFE::LayerCache::update(), FIFE::SoundEmitter::updateEvent(), FIFE::Camera::updateReferenceScale(), FIFE::Camera::updateRenderLists(), FIFE::VFSDirectory::VFSDirectory(), and FIFE::SoundManager::~SoundManager().
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
const uint32_t FIFE::AMASK = 0x000000ff |
Definition at line 56 of file fife_stdint.h.
Referenced by FIFE::InstanceRenderer::bindColoring(), FIFE::InstanceRenderer::bindOutline(), FIFE::RenderBackendOpenGLe::captureScreen(), FIFE::RenderBackendSDL::captureScreen(), FIFE::RenderBackendOpenGL::captureScreen(), FIFE::Image::copySubimage(), FIFE::FontBase::getAsImageMultiline(), getZoomedSurface(), FIFE::Image::Image(), FIFE::ImageFontBase::renderString(), FIFE::TrueTypeFont::renderString(), FIFE::RenderBackendOpenGLe::setScreenMode(), FIFE::RenderBackendOpenGL::setScreenMode(), and FIFE::RenderBackendSDL::setScreenMode().
const uint32_t FIFE::BMASK = 0x0000ff00 |
Definition at line 55 of file fife_stdint.h.
Referenced by FIFE::InstanceRenderer::bindColoring(), FIFE::InstanceRenderer::bindOutline(), FIFE::RenderBackendOpenGLe::captureScreen(), FIFE::RenderBackendSDL::captureScreen(), FIFE::RenderBackendOpenGL::captureScreen(), FIFE::Image::copySubimage(), FIFE::FontBase::getAsImageMultiline(), getZoomedSurface(), FIFE::Image::Image(), FIFE::ImageFontBase::renderString(), FIFE::TrueTypeFont::renderString(), FIFE::RenderBackendOpenGLe::setScreenMode(), FIFE::RenderBackendOpenGL::setScreenMode(), FIFE::RenderBackendSDL::setScreenMode(), and FIFE::SubImageFont::SubImageFont().
|
static |
Definition at line 81 of file renderbackendopengle.cpp.
Referenced by FIFE::RenderBackendOpenGLe::setScreenMode().
const uint32_t FIFE::BUFFER_LEN = 1048576 |
Definition at line 46 of file soundconfig.h.
Referenced by FIFE::SoundClip::getStream(), and FIFE::SoundClip::load().
const int16_t FIFE::BUFFER_NUM = 3 |
Definition at line 43 of file soundconfig.h.
Referenced by FIFE::SoundClip::acquireStream(), FIFE::SoundEmitter::attachSoundClip(), FIFE::SoundClip::beginStreaming(), FIFE::SoundClip::free(), FIFE::SoundClip::load(), FIFE::SoundClip::quitStreaming(), and FIFE::SoundEmitter::setCursor().
|
static |
Definition at line 47 of file zipsource.cpp.
Referenced by FIFE::ZipSource::readFileToIndex().
|
static |
Definition at line 76 of file fife_math.h.
Referenced by FIFE::float_traits< double >::degToRad().
|
static |
Definition at line 73 of file fife_math.h.
Referenced by FIFE::float_traits< double >::halfPi().
|
static |
Definition at line 81 of file fife_math.h.
Referenced by FIFE::float_traits< double >::invLog10().
|
static |
Definition at line 80 of file fife_math.h.
Referenced by FIFE::float_traits< double >::invLog2().
|
static |
Definition at line 74 of file fife_math.h.
Referenced by FIFE::float_traits< double >::inversePi().
|
static |
Definition at line 75 of file fife_math.h.
Referenced by FIFE::float_traits< double >::inverseTwoPi().
|
static |
Definition at line 79 of file fife_math.h.
Referenced by FIFE::float_traits< double >::log10().
|
static |
Definition at line 78 of file fife_math.h.
Referenced by FIFE::float_traits< double >::log2().
|
static |
Definition at line 71 of file fife_math.h.
Referenced by FIFE::float_traits< double >::pi().
|
static |
Definition at line 77 of file fife_math.h.
Referenced by FIFE::float_traits< double >::radToDeg().
|
static |
Definition at line 68 of file fife_math.h.
Referenced by FIFE::float_traits< double >::epsilon().
|
static |
Definition at line 69 of file fife_math.h.
Referenced by FIFE::float_traits< double >::max().
|
static |
Definition at line 72 of file fife_math.h.
Referenced by FIFE::float_traits< double >::twoPi().
|
static |
Definition at line 70 of file fife_math.h.
Referenced by FIFE::float_traits< double >::zeroTolerance().
|
static |
Definition at line 46 of file zipsource.cpp.
Referenced by FIFE::ZipSource::readFileToIndex().
const int32_t FIFE::DEFAULT_RENDERER_POSITION = 1000 |
Definition at line 39 of file rendererbase.cpp.
|
static |
Definition at line 61 of file fife_math.h.
Referenced by FIFE::float_traits< float >::degToRad().
|
static |
Definition at line 58 of file fife_math.h.
Referenced by FIFE::float_traits< float >::halfPi().
|
static |
Definition at line 66 of file fife_math.h.
Referenced by FIFE::float_traits< float >::invLog10().
|
static |
Definition at line 65 of file fife_math.h.
Referenced by FIFE::float_traits< float >::invLog2().
|
static |
Definition at line 59 of file fife_math.h.
Referenced by FIFE::float_traits< float >::inversePi().
|
static |
Definition at line 60 of file fife_math.h.
Referenced by FIFE::float_traits< float >::inverseTwoPi().
|
static |
Definition at line 64 of file fife_math.h.
Referenced by FIFE::float_traits< float >::log10().
|
static |
Definition at line 63 of file fife_math.h.
Referenced by FIFE::float_traits< float >::log2().
|
static |
Definition at line 56 of file fife_math.h.
Referenced by FIFE::float_traits< float >::pi().
|
static |
Definition at line 62 of file fife_math.h.
Referenced by FIFE::float_traits< float >::radToDeg().
|
static |
Definition at line 53 of file fife_math.h.
Referenced by FIFE::float_traits< float >::epsilon().
|
static |
Definition at line 54 of file fife_math.h.
Referenced by FIFE::float_traits< float >::max().
|
static |
Definition at line 57 of file fife_math.h.
Referenced by FIFE::float_traits< float >::twoPi().
|
static |
Definition at line 55 of file fife_math.h.
Referenced by FIFE::float_traits< float >::zeroTolerance().
const uint32_t FIFE::GMASK = 0x00ff0000 |
Definition at line 54 of file fife_stdint.h.
Referenced by FIFE::InstanceRenderer::bindColoring(), FIFE::InstanceRenderer::bindOutline(), FIFE::RenderBackendOpenGLe::captureScreen(), FIFE::RenderBackendSDL::captureScreen(), FIFE::RenderBackendOpenGL::captureScreen(), FIFE::Image::copySubimage(), FIFE::FontBase::getAsImageMultiline(), getZoomedSurface(), FIFE::Image::Image(), FIFE::ImageFontBase::renderString(), FIFE::TrueTypeFont::renderString(), FIFE::RenderBackendOpenGLe::setScreenMode(), FIFE::RenderBackendOpenGL::setScreenMode(), FIFE::RenderBackendSDL::setScreenMode(), and FIFE::SubImageFont::SubImageFont().
|
static |
Definition at line 45 of file hexgrid.cpp.
Referenced by FIFE::HexGrid::toLayerCoordinates().
|
static |
Definition at line 42 of file hexgrid.cpp.
Referenced by FIFE::HexGrid::getVertices(), and FIFE::HexGrid::HexGrid().
|
static |
Definition at line 41 of file hexgrid.cpp.
Referenced by FIFE::HexGrid::getVertices(), FIFE::HexGrid::HexGrid(), and FIFE::HexGrid::toLayerCoordinates().
|
static |
Definition at line 40 of file hexgrid.cpp.
Referenced by FIFE::HexGrid::getVertices(), FIFE::HexGrid::getXZigzagOffset(), and FIFE::HexGrid::HexGrid().
|
static |
Definition at line 39 of file hexgrid.cpp.
Referenced by FIFE::HexGrid::HexGrid().
|
static |
Definition at line 37 of file location.cpp.
Referenced by FIFE::Location::getExactLayerCoordinates(), and FIFE::Location::getLayerCoordinates().
|
static |
Definition at line 36 of file location.cpp.
Referenced by FIFE::Location::setExactLayerCoordinates(), and FIFE::Location::setMapCoordinates().
|
static |
Definition at line 45 of file zipsource.cpp.
Referenced by FIFE::ZipSource::readFileToIndex().
const int32_t FIFE::MAX_COORD = 9999999 |
Definition at line 96 of file coordinaterenderer.cpp.
Referenced by FIFE::CoordinateRenderer::render().
const uint32_t FIFE::MAX_KEEP_IN_MEM = 3145728 |
Definition at line 40 of file soundconfig.h.
Referenced by FIFE::SoundDecoder::needsStreaming().
|
static |
Definition at line 79 of file renderbackendopengle.cpp.
Referenced by FIFE::RenderBackendOpenGLe::getRenderBufferObject().
|
static |
Definition at line 80 of file renderbackendopengle.cpp.
const float FIFE::MAXIMUM_VOLUME = 10.0 |
Definition at line 44 of file enginesettings.cpp.
Referenced by FIFE::EngineSettings::getMaxVolume().
const uint32_t FIFE::maxPercent = 100 |
Definition at line 37 of file percentdonelistener.cpp.
Referenced by FIFE::PercentDoneCallback::incrementCount().
|
static |
Definition at line 48 of file cell.h.
Referenced by FIFE::Cell::updateCellBlockingInfo().
const int32_t FIFE::MIN_COORD = -9999999 |
Definition at line 95 of file coordinaterenderer.cpp.
Referenced by FIFE::CoordinateRenderer::render().
const uint32_t FIFE::minPercent = 0 |
Definition at line 36 of file percentdonelistener.cpp.
Referenced by FIFE::PercentDoneCallback::incrementCount(), and FIFE::PercentDoneCallback::reset().
const uint32_t FIFE::NULLMASK = 0x00000000 |
Definition at line 63 of file fife_stdint.h.
Referenced by FIFE::RenderBackendOpenGL::captureScreen(), FIFE::RenderBackendSDL::captureScreen(), FIFE::RenderBackendOpenGLe::captureScreen(), and FIFE::SubImageFont::SubImageFont().
const double FIFE::OVERDRAW = 1.5 |
Definition at line 58 of file layercache.cpp.
Referenced by FIFE::LayerCache::updatePosition().
const uint32_t FIFE::RMASK = 0xff000000 |
Definition at line 53 of file fife_stdint.h.
Referenced by FIFE::InstanceRenderer::bindColoring(), FIFE::InstanceRenderer::bindOutline(), FIFE::RenderBackendOpenGLe::captureScreen(), FIFE::RenderBackendSDL::captureScreen(), FIFE::RenderBackendOpenGL::captureScreen(), FIFE::Image::copySubimage(), FIFE::FontBase::getAsImageMultiline(), getZoomedSurface(), FIFE::Image::Image(), FIFE::ImageFontBase::renderString(), FIFE::TrueTypeFont::renderString(), FIFE::RenderBackendOpenGLe::setScreenMode(), FIFE::RenderBackendOpenGL::setScreenMode(), FIFE::RenderBackendSDL::setScreenMode(), and FIFE::SubImageFont::SubImageFont().
const int32_t FIFE::STATIC_IMAGE_NOT_INITIALIZED = -2 |
Definition at line 38 of file renderitem.cpp.
Referenced by FIFE::RenderItem::getStaticImageIndexByAngle(), and FIFE::RenderItem::reset().
|
static |
Definition at line 39 of file timemanager.cpp.
|
static |
Definition at line 43 of file hexgrid.cpp.
Referenced by FIFE::HexGrid::HexGrid(), FIFE::HexGrid::toExactLayerCoordinates(), and FIFE::HexGrid::toMapCoordinates().
|
static |
Definition at line 44 of file hexgrid.cpp.
Referenced by FIFE::HexGrid::getVertices(), and FIFE::HexGrid::toLayerCoordinates().