travel.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include "advent.h"
#include "advdec.h"
#include "advcave.h"

Include dependency graph for travel.c:

Go to the source code of this file.

Functions

 _PROTOTYPE (static void goback,(void))
 _PROTOTYPE (static void spcmove,(int rdest))
void domove ()
static void goback ()
static void ck_kal ()
static void dotrav ()
static void badmove ()
static void spcmove (int rdest)
void gettrav (int loc, struct trav *travel)

Variables

trav travel [MAXTRAV]
static int kalflg
static int bcrossing = 0
static int phuce [2][4]


Function Documentation

_PROTOTYPE static void  spcmove,
(int rdest) 
 

_PROTOTYPE static void  goback,
(void) 
 

static void badmove  )  [static]
 

Definition at line 165 of file travel.c.

References motion, msg, and rspeak().

static void ck_kal  )  [static]
 

Definition at line 87 of file travel.c.

References g, kalflg, playinfo::newloc, and playinfo::oldloc.

Referenced by goback().

void domove  ) 
 

Definition at line 23 of file travel.c.

References BACK, CAVE, dotrav(), g, gettrav(), goback(), playinfo::loc, motion, newtravel, NULLX, playinfo::oldloc, playinfo::oldloc2, outside(), rspeak(), travel, and TRUE.

Referenced by turn().

static void dotrav  )  [static]
 

Definition at line 103 of file travel.c.

References at(), bug(), g, kk, playinfo::loc, motion, playinfo::newloc, playinfo::prop, ranz(), trav::tcond, trav::tdest, toting(), travel, and trav::tverb.

Referenced by domove(), and goback().

void gettrav int  loc,
struct trav travel
 

Definition at line 313 of file travel.c.

References cave, i, MAXTRAV, t, trav::tdest, and travel.

Referenced by domove().

static void goback  )  [static]
 

Definition at line 51 of file travel.c.

References ck_kal(), dotrav(), forced(), g, kk, playinfo::loc, MAXTRAV, motion, playinfo::oldloc, playinfo::oldloc2, rspeak(), trav::tcond, trav::tdest, travel, and trav::tverb.

Referenced by domove().

static void spcmove int  rdest  )  [static]
 

Definition at line 189 of file travel.c.

References BEAR, BOAT, BOOTH, burden(), CHASM, death(), drop(), EMERALD, enclosed(), extract(), fixd, playinfo::fixed, g, GNOME, holding(), juggle(), k, load(), playinfo::loc, MAXOBJ, move, playinfo::newloc, playinfo::oldloc2, pct(), phuce, plac, playinfo::place, playinfo::prop, pspeak(), rspeak(), SPICES, playinfo::tally2, toting(), TROLL, TROLL2, and playinfo::visited.


Variable Documentation

int bcrossing = 0 [static]
 

Definition at line 13 of file travel.c.

int kalflg [static]
 

Definition at line 12 of file travel.c.

Referenced by ck_kal().

int phuce[2][4] [static]
 

Initial value:

 {158, 160, 167, 166,
                          160, 158, 166, 167}

Definition at line 14 of file travel.c.

Referenced by spcmove().

struct trav travel[MAXTRAV]
 

Definition at line 11 of file travel.c.

Referenced by domove(), dotrav(), gettrav(), and goback().


Generated on Fri Apr 14 22:58:13 2006 for minix by  doxygen 1.4.6