portrait.hpp

Go to the documentation of this file.
00001 /* $Id: portrait.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2008 - 2012 by mark de wever <koraq@xs4all.nl>
00004    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY.
00012 
00013    See the COPYING file for more details.
00014 */
00015 
00016 #ifndef PORTRAIT_HPP_INCLUDED
00017 #define PORTRAIT_HPP_INCLUDED
00018 
00019 class config;
00020 
00021 #include <string>
00022 
00023 /**
00024  * @todo this is a proof-of-concept version and undocumented. It should be
00025  * documented later and also allow WML to modify the portraits. This all
00026  * starts to make sense when the new dialogs become mainline.
00027  */
00028 
00029 /** Contains the definition of a portrait for a unit(type). */
00030 struct tportrait {
00031 
00032     tportrait(const config& cfg);
00033 
00034     enum tside { LEFT, RIGHT, BOTH };
00035 
00036     std::string image;
00037     tside side;
00038     unsigned size;
00039     bool mirror;
00040 };
00041 
00042 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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