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

Books Namespace Reference

Books stuff. More...


Compounds

class  cBook
 Item class for books. More...


Functions

void LoadBooks ()
 Load books from savefile.

void SaveBooks ()
 Save books to savefile.

void ShouldSave ()
 Set shouldsave flag to 1.

void archive ()
 archive old savefiles

void safeoldsave ()
 save the current savefile

void addNewBook (P_ITEM book)
 add a new book to the map with book as bookitem

void DoubleClickBook (NXWSOCKET s, P_ITEM book)
 Manage the doubleclick of a book-type item.


Variables

std::map< UI32, cBookbooks
LOGICAL shouldsave = false


Detailed Description

Books stuff.

Author:
Akron
Since:
0.82r3
new books readonly -> morex 999
new books writeable -> morex 666


Function Documentation

void Books::addNewBook P_ITEM    book
 

add a new book to the map with book as bookitem

Author:
Akron
Parameters:
book  pointer to the book item

void Books::archive  
 

archive old savefiles

Author:
Akron

void Books::DoubleClickBook NXWSOCKET    s,
P_ITEM    book
 

Manage the doubleclick of a book-type item.

Author:
Akron
Parameters:
s  socket that double clicked it
book  pointer to the book item
Todo:
complete the support for xss-generated books

void Books::LoadBooks  
 

Load books from savefile.

Author:
Akron This function read the nxwBook.wsc savefile and load all the books saved in it.

void Books::safeoldsave  
 

save the current savefile

Author:
AKron

void Books::SaveBooks  
 

Save books to savefile.

Author:
Akron This function write in the nxwBooks.wsc savefile the data about books.

void ShouldSave  
 

Set shouldsave flag to 1.

Author:
Akron
Note:
this function wait if the system is world saving for change the book


Variable Documentation

std::map< UI32, cBook > Books::books
 

LOGICAL Books::shouldsave = false
 

SourceForge.net Logo