# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CZoneManager Class Reference

CZoneManager is a class that manage zone loading around of player. More...

#include <zone_manager.h>

Inheritance diagram for NL3D::CZoneManager:

NL3D::CZoneSearch List of all members.

Public Methods

 CZoneManager ()
 Constructor. More...

 ~CZoneManager ()
 Destructor. More...

void checkZonesAround (uint x, uint y, uint area)
 checkZonesAround : Add/Remove all zomes around a certain point If a work is currently completed remove it and began another one. More...

bool isWorking ()
 Are we currently working in the background ? More...

bool isWorkComplete (SZoneManagerWork &rWork)
 Is a work has been completed ? More...

void setZonePath (std::string zonePath)
 setZonePath : Set Path for zone loading. More...

std::string getZonePath (void)
 getZonePath : Get Path for zone loading. More...


Private Attributes

std::string _zonePath
 Path for zone loading. More...

bool _WorkInProgress
std::vector< uint16_LoadedZones
std::vector< uint16_ZoneList
uint32 _LastX
uint32 _LastY
bool _AddingZone
 Do we are currently loading ? More...

uint16 _ZoneToAddId
std::string _ZoneToAddName
TVolatileZonePtr _Zone
bool _RemovingZone
uint16 _IdZoneToRemove

Detailed Description

CZoneManager is a class that manage zone loading around of player.

Author:
Alain Saffray , Nevrax France
Date:
2000 sa See Also, CZoneSearch, CTaskManager

Definition at line 53 of file zone_manager.h.


Constructor & Destructor Documentation

NL3D::CZoneManager::CZoneManager  
 

Constructor.

Definition at line 46 of file zone_manager.cpp.

References _AddingZone, _RemovingZone, _WorkInProgress, and _Zone.

NL3D::CZoneManager::~CZoneManager  
 

Destructor.

Definition at line 55 of file zone_manager.cpp.


Member Function Documentation

void NL3D::CZoneManager::checkZonesAround uint    x,
uint    y,
uint    area
 

checkZonesAround : Add/Remove all zomes around a certain point If a work is currently completed remove it and began another one.

Definition at line 60 of file zone_manager.cpp.

References _AddingZone, _IdZoneToRemove, _LastX, _LastY, _LoadedZones, _RemovingZone, _WorkInProgress, _Zone, _ZoneList, _ZoneToAddId, _ZoneToAddName, NL3D::CZoneSearch::getListZoneId, NL3D::CZoneSearch::getZoneNameFromId, x, and y.

std::string NL3D::CZoneManager::getZonePath void    [inline]
 

getZonePath : Get Path for zone loading.

Definition at line 104 of file zone_manager.h.

References _zonePath.

bool NL3D::CZoneManager::isWorkComplete SZoneManagerWork   rWork
 

Is a work has been completed ?

Definition at line 126 of file zone_manager.cpp.

References _AddingZone, _IdZoneToRemove, _LoadedZones, _RemovingZone, _Zone, _ZoneToAddId, _ZoneToAddName, and NL3D::CZoneSearch::getZoneNameFromId.

bool NL3D::CZoneManager::isWorking   [inline]
 

Are we currently working in the background ?

Definition at line 91 of file zone_manager.h.

References _WorkInProgress.

void NL3D::CZoneManager::setZonePath std::string    zonePath [inline]
 

setZonePath : Set Path for zone loading.

Definition at line 101 of file zone_manager.h.

References _zonePath.


Member Data Documentation

bool NL3D::CZoneManager::_AddingZone [private]
 

Do we are currently loading ?

Definition at line 119 of file zone_manager.h.

Referenced by checkZonesAround, CZoneManager, and isWorkComplete.

uint16 NL3D::CZoneManager::_IdZoneToRemove [private]
 

Definition at line 127 of file zone_manager.h.

Referenced by checkZonesAround, and isWorkComplete.

uint32 NL3D::CZoneManager::_LastX [private]
 

Definition at line 116 of file zone_manager.h.

Referenced by checkZonesAround.

uint32 NL3D::CZoneManager::_LastY [private]
 

Definition at line 116 of file zone_manager.h.

Referenced by checkZonesAround.

std::vector<uint16> NL3D::CZoneManager::_LoadedZones [private]
 

Definition at line 113 of file zone_manager.h.

Referenced by checkZonesAround, and isWorkComplete.

bool NL3D::CZoneManager::_RemovingZone [private]
 

Definition at line 126 of file zone_manager.h.

Referenced by checkZonesAround, CZoneManager, and isWorkComplete.

bool NL3D::CZoneManager::_WorkInProgress [private]
 

Definition at line 111 of file zone_manager.h.

Referenced by checkZonesAround, CZoneManager, and isWorking.

TVolatileZonePtr NL3D::CZoneManager::_Zone [private]
 

Definition at line 123 of file zone_manager.h.

Referenced by checkZonesAround, CZoneManager, and isWorkComplete.

std::vector<uint16> NL3D::CZoneManager::_ZoneList [private]
 

Definition at line 115 of file zone_manager.h.

Referenced by checkZonesAround.

std::string NL3D::CZoneManager::_zonePath [private]
 

Path for zone loading.

Definition at line 109 of file zone_manager.h.

Referenced by getZonePath, and setZonePath.

uint16 NL3D::CZoneManager::_ZoneToAddId [private]
 

Definition at line 120 of file zone_manager.h.

Referenced by checkZonesAround, and isWorkComplete.

std::string NL3D::CZoneManager::_ZoneToAddName [private]
 

Definition at line 121 of file zone_manager.h.

Referenced by checkZonesAround, and isWorkComplete.


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