Syndicate::Data::MapColumn Class Reference

#include <Syndicate/Data/MapColumn.h>

Inheritance diagram for Syndicate::Data::MapColumn:

Syndicate::Data::File List of all members.

Public Types

enum  MapColType {
  None, SlopeSN, SlopeNS, SlopeEW,
  SlopeWE, Ground, RoadSideEW, RoadSideWE,
  RoadSideSN, RoadSideNS, Wall, RoadCurve,
  HandrailLight, Roof, RoadPedCross, RoadMark,
  NbTypes
}

Public Member Functions

 MapColumn (void)
 ~MapColumn (void)
void get (uint8_t tile, uint8_t &type) const
virtual void info (void)
bool load (char const *filename)
unsigned getLength (void)

Protected Attributes

unsigned _data_length

Private Attributes

uint8_t * _types

Detailed Description

This class allow to access the col01.dat file.


Member Enumeration Documentation

enum Syndicate::Data::MapColumn::MapColType

Enumerator:
None 
SlopeSN 
SlopeNS 
SlopeEW 
SlopeWE 
Ground 
RoadSideEW 
RoadSideWE 
RoadSideSN 
RoadSideNS 
Wall 
RoadCurve 
HandrailLight 
Roof 
RoadPedCross 
RoadMark 
NbTypes 


Constructor & Destructor Documentation

Syndicate::Data::MapColumn::MapColumn ( void   )  [inline]

Syndicate::Data::MapColumn::~MapColumn ( void   )  [inline]


Member Function Documentation

void Syndicate::Data::MapColumn::get ( uint8_t  tile,
uint8_t &  type 
) const

Given the index of the tile, returns his type.

Parameters:
[in] tile the *index* of the tile
[out] type the type of tile

virtual void Syndicate::Data::File::info ( void   )  [virtual, inherited]

In debug mode it display the informations.

bool Syndicate::Data::File::load ( char const *  filename  )  [inherited]

This method load the content (unpacked) of the file at the adress pointed by _data.

Parameters:
[in] filename the name of the file.
Return values:
true if success.
false if fails. If previous file is loaded, the data keep unaffected.

unsigned Syndicate::Data::File::getLength ( void   )  [inline, inherited]


Member Data Documentation

uint8_t* Syndicate::Data::MapColumn::_types [private]

unsigned Syndicate::Data::File::_data_length [protected, inherited]


The documentation for this class was generated from the following file:
Generated on Sun Sep 30 13:08:36 2007 for libSyndicate by  doxygen 1.5.2