Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

prison Namespace Reference


Functions

void archive ()
 archive a jail worldfile

void safeoldsave ()
 save the current savefile

void jail (P_CHAR jailer, P_CHAR pc, UI32 secs)
 jail a character

void release (P_CHAR releaser, P_CHAR pc)
 Release a jailed player.

void checkForFree ()
 Auto check and free of jailed people.

void freePrisonCell (SERIAL cell)
 Free a cell.

void addCell (SERIAL serial, UI16 x, UI16 y, SI08 z)
void standardJailxyz (int jailnum, int &x, int &y, int &z)
 Get the defaul position for prison cell.


Variables

PRISONCELLVECTOR cells
 list of cells

JAILEDVECTOR jailed
 list of jailed people


Function Documentation

void prison::addCell SERIAL    serial,
UI16    x,
UI16    y,
SI08    z
 

void prison::archive  
 

archive a jail worldfile

Author:
Sparhawk

void prison::checkForFree  
 

Auto check and free of jailed people.

Author:
Endymion

void prison::freePrisonCell SERIAL    cell
 

Free a cell.

Author:
Endymion
Parameters:
cell  the cell serial
Note:
only use internal.. use release for release a player

void prison::jail P_CHAR    jailer,
P_CHAR    pc,
UI32    secs
 

jail a character

Author:
Endymion
Parameters:
jailer  the jailer
pc  the player who jail
secs  the second of jail

void prison::release P_CHAR    releaser,
P_CHAR    pc
 

Release a jailed player.

Author:
Endymion
Parameters:
releaser  the releaser
pc  the player jailed

void prison::safeoldsave  
 

save the current savefile

Author:
AKron

void prison::standardJailxyz int    jailnum,
int &    x,
int &    y,
int &    z
 

Get the defaul position for prison cell.

Author:
Sabrewulf, moved here by Endymion
Parameters:
jailnum 
x  the x position
y  the y position
z  the z position
Remarks:
this is just an helper function to get the location of the original jails


Variable Documentation

PRISONCELLVECTOR prison::cells
 

list of cells

JAILEDVECTOR prison::jailed
 

list of jailed people

SourceForge.net Logo