载入中...
搜索中...
未找到
eve::level_editing::TileBuffer类 参考

Independent GID grid for map brushes (no hard dependency on map.TileLayer). 更多...

#include <TileBuffer.h>

Public 成员函数

 TileBuffer (int width, int height)
 Tile buffer.
 
int getWidth () const
 Returns the width.
 
int getHeight () const
 Returns the height.
 
void resize (int width, int height)
 Resize.
 
void clear ()
 Clears .
 
void fill (int gid)
 Fill.
 
void setGid (int x, int y, int gid)
 Sets the gid.
 
int getGid (int x, int y) const
 Returns the gid.
 
bool containsCell (int x, int y) const
 Return whether a cell belongs to this buffer.
 

详细描述

Independent GID grid for map brushes (no hard dependency on map.TileLayer).

在文件 TileBuffer.h 第 11 行定义.

构造及析构函数说明

◆ TileBuffer()

eve::level_editing::TileBuffer::TileBuffer ( int  width,
int  height 
)

Tile buffer.

在文件 TileBuffer.cpp 第 9 行定义.

引用了 height , 以及 width.

成员函数说明

◆ clear()

void eve::level_editing::TileBuffer::clear ( )

Clears .

在文件 TileBuffer.cpp 第 31 行定义.

◆ containsCell()

bool eve::level_editing::TileBuffer::containsCell ( int  x,
int  y 
) const

Return whether a cell belongs to this buffer.

在文件 TileBuffer.cpp 第 35 行定义.

引用了 x , 以及 y.

被这些函数引用 eve::level_editing::TileBufferTarget::containsCell(), getGid() , 以及 setGid().

◆ fill()

void eve::level_editing::TileBuffer::fill ( int  gid)

Fill.

在文件 TileBuffer.cpp 第 33 行定义.

◆ getGid()

int eve::level_editing::TileBuffer::getGid ( int  x,
int  y 
) const

Returns the gid.

在文件 TileBuffer.cpp 第 42 行定义.

引用了 containsCell(), index, x , 以及 y.

被这些函数引用 eve::level_editing::TileBufferTarget::readInt() , 以及 eve::level_editing::TileBufferTarget::writeInt().

◆ getHeight()

int eve::level_editing::TileBuffer::getHeight ( ) const
inline

Returns the height.

在文件 TileBuffer.h 第 19 行定义.

被这些函数引用 eve::level_editing::TileBufferTarget::height().

◆ getWidth()

int eve::level_editing::TileBuffer::getWidth ( ) const
inline

Returns the width.

在文件 TileBuffer.h 第 17 行定义.

被这些函数引用 eve::level_editing::TileBufferTarget::width().

◆ resize()

void eve::level_editing::TileBuffer::resize ( int  width,
int  height 
)

Resize.

在文件 TileBuffer.cpp 第 16 行定义.

引用了 height, width, x , 以及 y.

◆ setGid()

void eve::level_editing::TileBuffer::setGid ( int  x,
int  y,
int  gid 
)

Sets the gid.

在文件 TileBuffer.cpp 第 37 行定义.

引用了 containsCell(), index, x , 以及 y.

被这些函数引用 eve::level_editing::TileBufferTarget::writeInt().


该类的文档由以下文件生成: