hoa_editor::Tileset Class Reference

Manages individual tiles in a tileset and everything related with them, such as walkability, animations, and so on. More...

#include <tileset.h>

Collaboration diagram for hoa_editor::Tileset:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void Save ()
 Tileset (QWidget *parent, const QString &name)
 Tileset constructor. Name needs to be the name of the tileset, not the filename.
 ~Tileset ()
 Tileset destructor.

Public Attributes

Q3Table * table
 Reference to the table implementation of this tileset in the bottom of the editor.
std::vector< hoa_video::StillImagetiles
 Contains the StillImage tiles of the tileset, used in grid.cpp.
QString tileset_name
 The name of the tileset this table is representing.
std::map< int, std::vector<
int32 > > 
walkability
 Contains walkability information for each tile.

Private Attributes

std::vector< std::vector<
AnimatedTileData > > 
_animated_tiles

Detailed Description

Manages individual tiles in a tileset and everything related with them, such as walkability, animations, and so on.

****************************************************************************

Definition at line 48 of file tileset.h.


Constructor & Destructor Documentation

Tileset::Tileset ( QWidget *  parent,
const QString &  name 
)

Tileset constructor. Name needs to be the name of the tileset, not the filename.

Definition at line 24 of file tileset.cpp.

References _animated_tiles, hoa_script::ReadScriptDescriptor::CloseTable(), hoa_script::ReadScriptDescriptor::GetTableSize(), hoa_script::ScriptDescriptor::IsErrorDetected(), hoa_video::GameVideo::LoadMultiImageFromNumberElements(), hoa_script::ReadScriptDescriptor::OpenFile(), hoa_script::ReadScriptDescriptor::OpenTable(), hoa_script::ReadScriptDescriptor::ReadIntVector(), hoa_script::ReadScriptDescriptor::ReadUInt(), table, hoa_editor::TILE_HEIGHT, hoa_editor::AnimatedTileData::tile_id, hoa_editor::TILE_WIDTH, tiles, tileset_name, hoa_editor::AnimatedTileData::time, hoa_video::VideoManager, and walkability.

Here is the call graph for this function:

Tileset::~Tileset (  ) 

Tileset destructor.

Definition at line 121 of file tileset.cpp.

References table.


Member Function Documentation

void Tileset::Save (  ) 

Definition at line 126 of file tileset.cpp.

References _animated_tiles, table, and tileset_name.


Member Data Documentation

std::vector<std::vector<AnimatedTileData> > hoa_editor::Tileset::_animated_tiles [private]

Definition at line 69 of file tileset.h.

Referenced by Save(), and Tileset().

Q3Table* hoa_editor::Tileset::table

Reference to the table implementation of this tileset in the bottom of the editor.

Definition at line 65 of file tileset.h.

Referenced by Save(), Tileset(), and ~Tileset().

std::vector<hoa_video::StillImage> hoa_editor::Tileset::tiles

Contains the StillImage tiles of the tileset, used in grid.cpp.

Definition at line 61 of file tileset.h.

Referenced by Tileset().

QString hoa_editor::Tileset::tileset_name

The name of the tileset this table is representing.

Definition at line 59 of file tileset.h.

Referenced by Save(), and Tileset().

std::map<int, std::vector<int32> > hoa_editor::Tileset::walkability

Contains walkability information for each tile.

Definition at line 63 of file tileset.h.

Referenced by Tileset().


The documentation for this class was generated from the following files:
Generated on Fri Jul 6 23:13:55 2007 for Hero of Allacrost by  doxygen 1.5.1