pos.h

musicmud-2.1.6/include/pos.h · 580 B

From the archive musicmud2.1.6.tar.gz

Download the archive   « Back to the archive contents

#ifndef POS_H
#define POS_H

enum pos_t {
  P_STANDING,
  P_SITTING,
  P_LYING,
  P_SWIMMING,    
  P_FLYING,
};

//! set the position of /what/.
void setpos(MudObject *what, pos_t, MudObject *on=0, int onn=0);

//! return what /who/ is sleeping on
MudObject *sleepon(MudObject *who);

//! return what /who/ is sitting on
MudObject *saton(MudObject *who);

//! is /where/ water?
bool inwater(MudObject *where);

//! is /where/ dry land?
bool dryland(MudObject *where);

//! fix up /who/'s position so it makes sense for where they are.
void rectify_state(MudObject *who);

#endif

Site Stats

Snippets: 1791
Codebases: 571