chunks.cc File Reference

#include "chunks.h"
#include "chunkter.h"
#include "gamewin.h"
#include "gamemap.h"
#include "shapeinf.h"
#include "citerate.h"
#include "egg.h"
#include "objiter.h"
#include "objs.h"
#include "ordinfo.h"
#include "game.h"
#include "animate.h"
#include "dir.h"
#include "actors.h"

Include dependency graph for chunks.cc:

Go to the source code of this file.

Functions

void Set_blocked_tile (unsigned long *blocked, int tx, int ty, int lift, int ztiles)
void Clear_blocked_tile (unsigned long *blocked, int tx, int ty, int lift, int ztiles)
void Check_terrain (Map_chunk *nlist, int tx, int ty, int &terrain)
static Tile_coordGet_square (Tile_coord &pos, int dist)
bool Check_spot (Map_chunk::Find_spot_where where, int tx, int ty, int tz)

Variables

unsigned long tmasks [16]


Function Documentation

bool Check_spot ( Map_chunk::Find_spot_where  where,
int  tx,
int  ty,
int  tz 
) [inline]

Definition at line 1106 of file chunks.cc.

References c_tiles_per_chunk, Game_map::get_chunk_safely(), Game_window::get_instance(), Game_window::get_map(), Map_chunk::inside, and Map_chunk::is_roof().

Referenced by Map_chunk::find_spot().

Here is the call graph for this function:

void Check_terrain ( Map_chunk nlist,
int  tx,
int  ty,
int &  terrain 
) [inline]

Definition at line 410 of file chunks.cc.

References Map_chunk::get_flat(), ShapeID::get_info(), ShapeID::is_invalid(), Shape_info::is_solid(), and Shape_info::is_water().

Referenced by Chunk_cache::is_blocked().

Here is the call graph for this function:

void Clear_blocked_tile ( unsigned long *  blocked,
int  tx,
int  ty,
int  lift,
int  ztiles 
) [inline]

Definition at line 133 of file chunks.cc.

References c_tiles_per_chunk.

Referenced by Chunk_cache::set_blocked(), and Chunk_cache::update_object().

static Tile_coord* Get_square ( Tile_coord pos,
int  dist 
) [static]

Definition at line 1069 of file chunks.cc.

References DECR_TILE(), INCR_TILE, len, Tile_coord::tx, Tile_coord::ty, and Tile_coord::tz.

Referenced by Map_chunk::find_spot().

Here is the call graph for this function:

void Set_blocked_tile ( unsigned long *  blocked,
int  tx,
int  ty,
int  lift,
int  ztiles 
) [inline]

Definition at line 106 of file chunks.cc.

References c_tiles_per_chunk.

Referenced by Chunk_cache::set_blocked(), and Chunk_cache::update_object().


Variable Documentation

unsigned long tmasks[16]

Initial value:

 {    0x0L,
                0x1L,
                0x5L,
               0x15L,
               0x55L,
              0x155L,
              0x555L,
             0x1555L,
             0x5555L,
            0x15555L,
            0x55555L,
           0x155555L,
           0x555555L,
          0x1555555L,
          0x5555555L,
         0x15555555L
      }

Definition at line 80 of file chunks.cc.


Generated on Mon Jul 9 14:45:14 2007 for ExultEngine by  doxygen 1.5.1