Namespaces | Functions

halo.cpp File Reference

Maintain halo-effects for units and items. More...

#include "global.hpp"
#include "animated.hpp"
#include "display.hpp"
#include "game_preferences.hpp"
#include "halo.hpp"
#include "serialization/string_utils.hpp"
Include dependency graph for halo.cpp:

Go to the source code of this file.

Namespaces

namespace  halo

Functions

int halo::add (int x, int y, const std::string &image, const map_location &loc, ORIENTATION orientation=NORMAL, bool infinite=true)
 Add a haloing effect using 'image centered on (x,y).
void halo::set_location (int handle, int x, int y)
 Set the position of an existing haloing effect, according to its handle.
void halo::remove (int handle)
 Remove the halo with the given handle.
void halo::unrender (std::set< map_location > invalidated_locations)
 Render and unrender haloes.
void halo::render ()

Detailed Description

Maintain halo-effects for units and items.

Examples: white mage, lighthouse.

Definition in file halo.cpp.


Variable Documentation

Definition at line 61 of file halo.cpp.

Definition at line 56 of file halo.cpp.

The location of the center of the halo.

Definition at line 65 of file halo.cpp.

ORIENTATION orientation_

Definition at line 58 of file halo.cpp.

All locations over which the halo lies.

Definition at line 68 of file halo.cpp.

SDL_Rect rect_

Definition at line 62 of file halo.cpp.

Definition at line 61 of file halo.cpp.

int x_

Definition at line 60 of file halo.cpp.

int y_

Definition at line 60 of file halo.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:05:21 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs