travel.h File Reference

#include "externs.h"
#include "exclude.h"
#include "map_knowledge.h"
#include "travel_defs.h"
#include <stdio.h>
#include <string>
#include <vector>
#include <map>

Include dependency graph for travel.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  travel_target
class  explore_discoveries
struct  explore_discoveries::named_thing< Z >
struct  stair_info
struct  LevelInfo
class  TravelCache
class  travel_pathfind

Enumerations

enum  run_check_type { RCHECK_LEFT, RCHECK_FRONT, RCHECK_RIGHT }
enum  run_dir_type {
  RDIR_UP = 0, RDIR_UP_RIGHT, RDIR_RIGHT, RDIR_DOWN_RIGHT,
  RDIR_DOWN, RDIR_DOWN_LEFT, RDIR_LEFT, RDIR_UP_LEFT,
  RDIR_REST
}
enum  run_mode_type {
  RMODE_INTERLEVEL = -4, RMODE_EXPLORE_GREEDY = -3, RMODE_EXPLORE = -2, RMODE_TRAVEL = -1,
  RMODE_NOT_RUNNING = 0, RMODE_CONTINUE, RMODE_START, RMODE_REST_DURATION = 100
}
enum  translevel_prompt_flags {
  TPF_NO_FLAGS = 0, TPF_ALLOW_WAYPOINTS = 0x1, TPF_ALLOW_UPDOWN = 0x2, TPF_REMEMBER_TARGET = 0x4,
  TPF_SHOW_ALL_BRANCHES = 0x8, TPF_DEFAULT_OPTIONS
}
enum  explore_stop_type {
  ES_NONE = 0x0000, ES_ITEM = 0x0001, ES_GREEDY_PICKUP = 0x0002, ES_GREEDY_PICKUP_GOLD = 0x0004,
  ES_GREEDY_PICKUP_SMART = 0x0008, ES_GREEDY_PICKUP_THROWN = 0x0010, ES_GREEDY_PICKUP_MASK, ES_GREEDY_ITEM = 0x0020,
  ES_GREEDY_VISITED_ITEM_STACK = 0x0040, ES_STAIR = 0x0080, ES_SHOP = 0x0100, ES_ALTAR = 0x0200,
  ES_PORTAL = 0x0400, ES_GLOWING_ITEM = 0x0800, ES_ARTEFACT = 0x1000, ES_RUNE = 0x2000
}

Functions

void initialise_travel ()
void init_travel_terrain_check (bool check_race_equip=true)
void stop_running (void)
void travel_init_load_level ()
void travel_init_new_level ()
uint8_t is_waypoint (const coord_def &p)
command_type direction_to_command (int x, int y)
bool is_resting (void)
void explore_pickup_event (int did_pickup, int tried_pickup)
bool feat_is_traversable (dungeon_feature_type feat)
bool is_unknown_stair (const coord_def &p)
void find_travel_pos (const coord_def &youpos, int *move_x, int *move_y, std::vector< coord_def > *coords=NULL)
bool is_travelsafe_square (const coord_def &c, bool ignore_hostile=false)
void start_explore (bool grab_items=false)
void do_explore_cmd ()
level_id find_up_level (level_id curr, bool up_branch=false)
level_id find_down_level (level_id curr)
void start_translevel_travel_prompt ()
void start_translevel_travel (const travel_target &pos)
void start_travel (const coord_def &p)
command_type travel ()
int travel_direction (uint8_t branch, int subdungeondepth)
void prevent_travel_to (const std::string &dungeon_feature_name)
void arrange_features (std::vector< coord_def > &features)
int level_distance (level_id first, level_id second)
level_id find_deepest_explored (level_id curr)
bool can_travel_to (const level_id &lid)
bool can_travel_interlevel ()
bool prompt_stop_explore (int es_why)
bool travel_kill_monster (const monster *mons)
travel_target prompt_translevel_target (int prompt_flags, std::string &dest_name)
void do_interlevel_travel ()
int click_travel (const coord_def &gc, bool force)
bool check_for_interesting_features ()

Variables

const int PD_TRAP = -42
const int PD_EXCLUDED = -20099
const int PD_EXCLUDED_RADIUS = -20100
travel_distance_grid_t travel_point_distance
const int TRAVEL_WAYPOINT_COUNT = 10
TravelCache travel_cache


Enumeration Type Documentation

Enumerator:
ES_NONE 
ES_ITEM 
ES_GREEDY_PICKUP 
ES_GREEDY_PICKUP_GOLD 
ES_GREEDY_PICKUP_SMART 
ES_GREEDY_PICKUP_THROWN 
ES_GREEDY_PICKUP_MASK 
ES_GREEDY_ITEM 
ES_GREEDY_VISITED_ITEM_STACK 
ES_STAIR 
ES_SHOP 
ES_ALTAR 
ES_PORTAL 
ES_GLOWING_ITEM 
ES_ARTEFACT 
ES_RUNE 

Enumerator:
RCHECK_LEFT 
RCHECK_FRONT 
RCHECK_RIGHT 

Enumerator:
RDIR_UP 
RDIR_UP_RIGHT 
RDIR_RIGHT 
RDIR_DOWN_RIGHT 
RDIR_DOWN 
RDIR_DOWN_LEFT 
RDIR_LEFT 
RDIR_UP_LEFT 
RDIR_REST 

Enumerator:
RMODE_INTERLEVEL 
RMODE_EXPLORE_GREEDY 
RMODE_EXPLORE 
RMODE_TRAVEL 
RMODE_NOT_RUNNING 
RMODE_CONTINUE 
RMODE_START 
RMODE_REST_DURATION 

Enumerator:
TPF_NO_FLAGS 
TPF_ALLOW_WAYPOINTS 
TPF_ALLOW_UPDOWN 
TPF_REMEMBER_TARGET 
TPF_SHOW_ALL_BRANCHES 
TPF_DEFAULT_OPTIONS 


Function Documentation

void arrange_features ( std::vector< coord_def > &  features  ) 

Here is the call graph for this function:

bool can_travel_interlevel (  ) 

bool can_travel_to ( const level_id lid  ) 

Here is the call graph for this function:

bool check_for_interesting_features (  ) 

Here is the call graph for this function:

int click_travel ( const coord_def gc,
bool  force 
)

Here is the call graph for this function:

command_type direction_to_command ( int  x,
int  y 
)

void do_explore_cmd (  ) 

Here is the call graph for this function:

void do_interlevel_travel (  ) 

Here is the call graph for this function:

void explore_pickup_event ( int  did_pickup,
int  tried_pickup 
)

Here is the call graph for this function:

bool feat_is_traversable ( dungeon_feature_type  feat  ) 

level_id find_deepest_explored ( level_id  curr  ) 

Here is the call graph for this function:

level_id find_down_level ( level_id  curr  ) 

void find_travel_pos ( const coord_def youpos,
int *  move_x,
int *  move_y,
std::vector< coord_def > *  coords = NULL 
)

Here is the call graph for this function:

level_id find_up_level ( level_id  curr,
bool  up_branch = false 
)

Here is the call graph for this function:

void init_travel_terrain_check ( bool  check_race_equip = true  ) 

Here is the call graph for this function:

void initialise_travel (  ) 

bool is_resting ( void   ) 

Here is the call graph for this function:

bool is_travelsafe_square ( const coord_def c,
bool  ignore_hostile = false 
)

Here is the call graph for this function:

bool is_unknown_stair ( const coord_def p  ) 

Here is the call graph for this function:

uint8_t is_waypoint ( const coord_def p  ) 

Here is the call graph for this function:

int level_distance ( level_id  first,
level_id  second 
)

Here is the call graph for this function:

void prevent_travel_to ( const std::string dungeon_feature_name  ) 

Here is the call graph for this function:

bool prompt_stop_explore ( int  es_why  ) 

Here is the call graph for this function:

travel_target prompt_translevel_target ( int  prompt_flags,
std::string dest_name 
)

Here is the call graph for this function:

void start_explore ( bool  grab_items = false  ) 

Here is the call graph for this function:

void start_translevel_travel ( const travel_target pos  ) 

Here is the call graph for this function:

void start_translevel_travel_prompt (  ) 

Here is the call graph for this function:

void start_travel ( const coord_def p  ) 

Here is the call graph for this function:

void stop_running ( void   ) 

Here is the call graph for this function:

command_type travel (  ) 

Here is the call graph for this function:

int travel_direction ( uint8_t  branch,
int  subdungeondepth 
)

void travel_init_load_level (  ) 

Here is the call graph for this function:

void travel_init_new_level (  ) 

Here is the call graph for this function:

bool travel_kill_monster ( const monster mons  ) 

Here is the call graph for this function:


Variable Documentation

const int PD_EXCLUDED = -20099

const int PD_EXCLUDED_RADIUS = -20100

const int PD_TRAP = -42

const int TRAVEL_WAYPOINT_COUNT = 10


Generated on Thu Jan 13 13:29:34 2011 by  doxygen 1.5.6