Otclient  14/8/2020
TileBlock Class Reference

#include <map.h>

Public Member Functions

 TileBlock ()
 
const TilePtrcreate (const Position &pos)
 
const TilePtrgetOrCreate (const Position &pos)
 
const TilePtrget (const Position &pos)
 
void remove (const Position &pos)
 
uint getTileIndex (const Position &pos)
 
const std::array< TilePtr, BLOCK_SIZE *BLOCK_SIZE > & getTiles () const
 

Detailed Description

Definition at line 101 of file map.h.

Constructor & Destructor Documentation

◆ TileBlock()

TileBlock::TileBlock ( )
inline

Definition at line 103 of file map.h.

Member Function Documentation

◆ create()

const TilePtr& TileBlock::create ( const Position pos)
inline

Definition at line 105 of file map.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get()

const TilePtr& TileBlock::get ( const Position pos)
inline

Definition at line 116 of file map.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getOrCreate()

const TilePtr& TileBlock::getOrCreate ( const Position pos)
inline

Definition at line 110 of file map.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTileIndex()

uint TileBlock::getTileIndex ( const Position pos)
inline

Definition at line 119 of file map.h.

Here is the caller graph for this function:

◆ getTiles()

const std::array<TilePtr, BLOCK_SIZE*BLOCK_SIZE>& TileBlock::getTiles ( ) const
inline

Definition at line 121 of file map.h.

Here is the caller graph for this function:

◆ remove()

void TileBlock::remove ( const Position pos)
inline

Definition at line 117 of file map.h.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: