24 #include <csutil/ref.h> 95 return (strcmp(inSector,other.
inSector)<0);
144 void LoadZone(csVector3 pos,
float yrot,
const char* sector, csVector3 vel,
bool force =
false);
151 void OnDrawingFinished();
159 void MovePlayerTo(
const csVector3 &Pos,
float yRot,
const csString &newSector,
const csVector3 &Vel);
169 void HandleDelayAndAnim(int32_t loadDelay, csVector2 start, csVector2 dest, csString background, csString widgetName);
219 bool FindLoadWindow(
bool force =
false,
const char* widgetName =
"LoadWindow");
250 void ForceLoadScreen(csString backgroundImage, uint32_t length, csString widgetName);
258 bool ForceLoadWindowWidget(
bool enable, csString loadWindowName);
Ensures all regions that need to be loaded are.
pawsProgressBar * loadProgressBar
Used for showing users load progress.
csRef< MsgHandler > msghandler
Message Handler to subscribe to.
csVector3 newPos
The target location the player will move to after loading.
csRef< iStringArray > regions
Regions to load on sector load.
csVector3 newVel
The velocity the player will have after loading.
The structure of 1 queue entry (pointer to a message)
bool operator<(ZoneLoadInfo &other) const
Basic comparison for less than.
Used to save movement state to detect changes.
csHash< ZoneLoadInfo *, const char * > zonelist
Mapping of names of zones to their load info.
csString loadImage
Optional loading screen image.
psCelClient * celclient
Pointer to cel client instance.
This is the window that is displayed when the game is loading the maps.
bool operator==(ZoneLoadInfo &other) const
Basic comparison for equality.
Client version of the Cel Manager Requests world loading.
bool loading
Whether a new zone is currently being loaded.
csString sectorToLoad
The sector that needs to be loaded.
csString forcedBackgroundImg
String which holds the background of the loading screen.
float newyrot
The rotation the player will have after loading.
csString forcedWidgetName
Holds the widget name used to replace the load window.
csTicks forcedLoadingEndTime
Holds how long the loading shall be delayed.
This class is the client's and server's main interface for either sending network messages out or get...
pawsLoadWindow * loadWindow
A load window that can be shown to users while loading.
Information for loading a specific zone.
bool valid
Whether the loading was successful.
csTicks forcedLoadingStartTime
Holds how long the loading shall be delayed.
ZoneLoadInfo(iDocumentNode *node)
Basic constructor built from a XML node.
bool IsValid() const
Returns whether the zone handler is valid.
bool IsLoading() const
Returns if this is loading a zone.
csString inSector
Which sector this zone applies to.
size_t loadCount
The number of items that are being loaded.