Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

src/facing.c File Reference


Detailed Description

Implements parts of the Implicit Facing rules. See notes/facing.txt for details on what implicit facing is.

Definition in file facing.c.

#include "crogue.h"

Go to the source code of this file.

Functions

sint facing (sint x, sint y)
sint facing_towards (sint x, sint y)
sint facing_opposite (sint x, sint y)
sint player_facing (void)
uint delta_facing (sint facing_one, sint facing_two)
sint sign (sint v)

Variables

schar facings [3][3]


Function Documentation

uint delta_facing sint  facing_one,
sint  facing_two
 

Definition at line 87 of file facing.c.

References min(), sint, and uint.

Referenced by monst_facing(), and plr_walk().

sint facing sint  x,
sint  y
 

Definition at line 49 of file facing.c.

References facings, sign(), and sint.

Referenced by facing_towards(), plr_walk(), and prompt_dir().

sint facing_opposite sint  x,
sint  y
 

Definition at line 63 of file facing.c.

References facing_towards(), and sint.

sint facing_towards sint  x,
sint  y
 

Definition at line 57 of file facing.c.

References facing(), world::plr, sint, w, player::x, and player::y.

Referenced by facing_opposite(), monst_facing(), and player_facing().

sint player_facing void   ) 
 

Definition at line 69 of file facing.c.

References player::facing, player::facing_forced, facing_towards(), monstbytile(), world::plr, sint, w, player::x, and player::y.

Referenced by monst_facing(), and plr_walk().

sint sign sint  v  )  [static]
 

Definition at line 33 of file facing.c.

References sint.

Referenced by facing().


Variable Documentation

schar facings[3][3] [static]
 

Initial value:

    {
        { 3, 2, 1 },
        { 4, 8, 0 },
        { 5, 6, 7 }
    }

Definition at line 41 of file facing.c.

Referenced by facing().


Generated on Thu May 20 13:12:12 2004 for CalcRogue by doxygen 1.3.6