xoreos  0.0.5
Public Member Functions | Private Attributes | List of all members
Aurora::VISFile Class Reference

A VIS, BioWare's Visibility Format. More...

#include <visfile.h>

Collaboration diagram for Aurora::VISFile:
Collaboration graph
[legend]

Public Member Functions

 VISFile ()
 
 ~VISFile ()
 
void clear ()
 Clear all information. More...
 
void load (Common::SeekableReadStream &vis)
 Load a VIS file. More...
 
const std::vector< Common::UString > & getVisibilityArray (const Common::UString &room) const
 Return the visibility array for a given room. More...
 

Private Attributes

std::map< Common::UString, std::vector< Common::UString > > _map
 

Detailed Description

A VIS, BioWare's Visibility Format.

A VIS file is a simple ASCII file defining the inter-room visibility in an area, i.e. which rooms are visible from any given other room. The definitions of the rooms themselves can be found in LYT files (see class LYTFile).

VIS files are used by the two Knights of the Old Republic games and Jade Empire.

Definition at line 52 of file visfile.h.

Constructor & Destructor Documentation

◆ VISFile()

Aurora::VISFile::VISFile ( )

Definition at line 35 of file visfile.cpp.

◆ ~VISFile()

Aurora::VISFile::~VISFile ( )

Definition at line 38 of file visfile.cpp.

Member Function Documentation

◆ clear()

void Aurora::VISFile::clear ( )

Clear all information.

Definition at line 41 of file visfile.cpp.

References _map.

Referenced by load().

Here is the caller graph for this function:

◆ getVisibilityArray()

const std::vector< Common::UString > & Aurora::VISFile::getVisibilityArray ( const Common::UString room) const

Return the visibility array for a given room.

This is a list of rooms that are visible from that given room

Definition at line 118 of file visfile.cpp.

References _map, Aurora::emptyRoom, and Common::UString::toLower().

Referenced by Engines::KotOR2::Area::getRoomsVisibleFrom(), Engines::KotOR::Area::getRoomsVisibleFrom(), Engines::KotOR2::Area::notifyPCMoved(), and Engines::KotOR::Area::notifyPCMoved().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ load()

void Aurora::VISFile::load ( Common::SeekableReadStream vis)

Member Data Documentation

◆ _map

std::map<Common::UString, std::vector<Common::UString> > Aurora::VISFile::_map
private

Definition at line 73 of file visfile.h.

Referenced by clear(), getVisibilityArray(), and load().


The documentation for this class was generated from the following files: