Public Types | Public Member Functions | Public Attributes

tportrait Struct Reference

Contains the definition of a portrait for a unit(type). More...

#include <portrait.hpp>

Collaboration diagram for tportrait:
Collaboration graph
[legend]

List of all members.

Public Types

enum  tside { LEFT, RIGHT, BOTH }

Public Member Functions

 tportrait (const config &cfg)

Public Attributes

std::string image
tside side
unsigned size
bool mirror

Detailed Description

Contains the definition of a portrait for a unit(type).

Todo:
this is a proof-of-concept version and undocumented.

It should be documented later and also allow WML to modify the portraits. This all starts to make sense when the new dialogs become mainline.

Definition at line 30 of file portrait.hpp.


Member Enumeration Documentation

Enumerator:
LEFT 
RIGHT 
BOTH 

Definition at line 34 of file portrait.hpp.


Constructor & Destructor Documentation

tportrait::tportrait ( const config cfg  ) 

Definition at line 40 of file portrait.cpp.

References image, missing_mandatory_wml_key(), size, and VALIDATE.

Here is the call graph for this function:


Member Data Documentation

std::string tportrait::image

Definition at line 36 of file portrait.hpp.

Referenced by tportrait().

Definition at line 39 of file portrait.hpp.

Definition at line 37 of file portrait.hpp.

Referenced by unit::portrait().

unsigned tportrait::size

Definition at line 38 of file portrait.hpp.

Referenced by unit::portrait(), and tportrait().


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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