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

cBoat Class Reference

#include <boats.h>

Inheritance diagram for cBoat:

cMulti List of all members.

Public Methods

 cBoat ()
P_ITEM GetBoat (Location pos)
 check if there is a boat at this position and return the boat

virtual ~cBoat ()
LOGICAL Speech (P_CHAR pc, NXWSOCKET socket, std::string &talk)
void OpenPlank (P_ITEM pi)
void PlankStuff (P_CHAR pc, P_ITEM pi)
LOGICAL Build (NXWSOCKET s, P_ITEM pBoat, char)
void Move (NXWSOCKET s, int dir, P_ITEM pBoat)
void Turn (P_ITEM, int)
void remove ()
void setTiller (SERIAL tillerSerial)
void setTiller (P_ITEM tiller)
void setLeftPlank (SERIAL plankSerial)
void setLeftPlank (P_ITEM plank)
void setRightPlank (SERIAL plankSerial)
void setRightPlank (P_ITEM plank)
void setHold (SERIAL holdSerial)
void setHold (P_ITEM hold)
void setShipLink (P_ITEM ship)
P_ITEM getTiller ()
P_ITEM getLeftPlank ()
P_ITEM getRightPlank ()
P_ITEM getHold ()
P_ITEM getShipLink ()

Static Public Methods

LOGICAL makeBoatItems (P_ITEM pBoat)
void buildShip (P_CHAR builder, P_ITEM shipdeed)
void target_buildShip (NXWCLIENT ps, P_TARGET t)
P_ITEM findmulti (Location where)
bool inmulti (Location where, P_ITEM pi)
void cBoat::insert_boat (P_ITEM pi, cBoat *boat)
void cBoat::remove_boat (P_ITEM pi)
cBoat * search_boat (SI32 ser)
P_ITEM search_boat_by_plank (P_ITEM pl)

Protected Methods

LOGICAL boat_collision (P_ITEM pBoat1, int x1, int y1, int dir, P_ITEM pBoat2)
LOGICAL collision (P_ITEM pi, Location where, int dir)
LOGICAL good_position (P_ITEM pBoat, Location where, int dir)
LOGICAL tile_check (multi_st multi, P_ITEM pBoat, map_st map, int x, int y,int dir)
void LeaveBoat (P_CHAR pc, P_ITEM pi)
void TurnStuff_i (P_ITEM, P_ITEM, int)
void TurnStuff_c (P_ITEM, P_CHAR, int)
void iMove (NXWSOCKET s, int dir, P_ITEM pBoat, LOGICAL forced=true)
void TurnShip (UI08 size, SI32 dir, P_ITEM pPort, P_ITEM pStarboard, P_ITEM pTiller, P_ITEM pHold)

Private Attributes

SERIAL tiller_serial
SERIAL l_plank_serial
SERIAL r_plank_serial
SERIAL container
P_ITEM p_serial
P_ITEM p_tiller
P_ITEM p_l_plank
P_ITEM p_r_plank
P_ITEM p_container

Constructor & Destructor Documentation

cBoat::cBoat  
 

cBoat::~cBoat   [virtual]
 


Member Function Documentation

LOGICAL cBoat::boat_collision P_ITEM    pBoat1,
int    x1,
int    y1,
int    dir,
P_ITEM    pBoat2
[protected]
 

LOGICAL cBoat::Build NXWSOCKET    s,
P_ITEM    pBoat,
char   
 

void cBoat::buildShip P_CHAR    builder,
P_ITEM    shipdeed
[static]
 

void cBoat::cBoat::insert_boat P_ITEM    pi,
cBoat *    boat
[static]
 

void cBoat::cBoat::remove_boat P_ITEM    pi [static]
 

LOGICAL cBoat::collision P_ITEM    pi,
Location    where,
int    dir
[protected]
 

P_ITEM cBoat::findmulti Location    where [static]
 

P_ITEM cBoat::GetBoat Location    pos
 

check if there is a boat at this position and return the boat

Returns:
the pointer to the boat or NULL
Author:
Elcabesa

P_ITEM cBoat::getHold  
 

P_ITEM cBoat::getLeftPlank  
 

P_ITEM cBoat::getRightPlank  
 

P_ITEM cBoat::getShipLink  
 

P_ITEM cBoat::getTiller  
 

LOGICAL cBoat::good_position P_ITEM    pBoat,
Location    where,
int    dir
[protected]
 

void cBoat::iMove NXWSOCKET    s,
int    dir,
P_ITEM    pBoat,
LOGICAL    forced = true
[protected]
 

bool cBoat::inmulti Location    where,
P_ITEM    pi
[static]
 

void cBoat::LeaveBoat P_CHAR    pc,
P_ITEM    pi
[protected]
 

LOGICAL cBoat::makeBoatItems P_ITEM    pBoat [static]
 

void cBoat::Move NXWSOCKET    s,
int    dir,
P_ITEM    pBoat
 

void cBoat::OpenPlank P_ITEM    pi
 

void cBoat::PlankStuff P_CHAR    pc,
P_ITEM    pi
 

void cBoat::remove  
 

P_BOAT cBoat::search_boat SI32    ser [static]
 

P_ITEM cBoat::search_boat_by_plank P_ITEM    pl [static]
 

void cBoat::setHold P_ITEM    hold
 

void cBoat::setHold SERIAL    holdSerial
 

void cBoat::setLeftPlank P_ITEM    plank
 

void cBoat::setLeftPlank SERIAL    plankSerial
 

void cBoat::setRightPlank P_ITEM    plank
 

void cBoat::setRightPlank SERIAL    plankSerial
 

void cBoat::setShipLink P_ITEM    ship
 

void cBoat::setTiller P_ITEM    tiller
 

void cBoat::setTiller SERIAL    tillerSerial
 

LOGICAL cBoat::Speech P_CHAR    pc,
NXWSOCKET    socket,
std::string &    talk
 

void cBoat::target_buildShip NXWCLIENT    ps,
P_TARGET    t
[static]
 

LOGICAL cBoat::tile_check multi_st    multi,
P_ITEM    pBoat,
map_st    map,
int    x,
int    y,
int    dir
[protected]
 

void cBoat::Turn P_ITEM   ,
int   
 

void cBoat::TurnShip UI08    size,
SI32    dir,
P_ITEM    pPort,
P_ITEM    pStarboard,
P_ITEM    pTiller,
P_ITEM    pHold
[protected]
 

void cBoat::TurnStuff_c P_ITEM   ,
P_CHAR   ,
int   
[protected]
 

void cBoat::TurnStuff_i P_ITEM   ,
P_ITEM   ,
int   
[protected]
 


Member Data Documentation

SERIAL cBoat::container [private]
 

SERIAL cBoat::l_plank_serial [private]
 

P_ITEM cBoat::p_container [private]
 

P_ITEM cBoat::p_l_plank [private]
 

P_ITEM cBoat::p_r_plank [private]
 

P_ITEM cBoat::p_serial [private]
 

P_ITEM cBoat::p_tiller [private]
 

SERIAL cBoat::r_plank_serial [private]
 

SERIAL cBoat::tiller_serial [private]
 


The documentation for this class was generated from the following files: SourceForge.net Logo