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

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

#include <TileBuffer.h>

Public 成员函数

 TileBuffer (int width, int height)
 
int getWidth () const
 
int getHeight () const
 
void resize (int width, int height)
 
void clear ()
 
void fill (int gid)
 
void setGid (int x, int y, int gid)
 
int getGid (int x, int y) const
 
bool inBounds (int x, int y) const
 

详细描述

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

在文件 TileBuffer.h9 行定义.

构造及析构函数说明

◆ TileBuffer()

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

在文件 TileBuffer.cpp9 行定义.

引用了 height , 以及 width.

成员函数说明

◆ clear()

void eve::editor::TileBuffer::clear ( )

在文件 TileBuffer.cpp31 行定义.

◆ fill()

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

在文件 TileBuffer.cpp33 行定义.

◆ getGid()

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

在文件 TileBuffer.cpp44 行定义.

引用了 inBounds(), x , 以及 y.

被这些函数引用 eve::editor::Brush::floodFill() , 以及 eve::editor::Brush::previewAt().

◆ getHeight()

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

在文件 TileBuffer.h14 行定义.

被这些函数引用 eve::editor::Brush::floodFill().

◆ getWidth()

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

在文件 TileBuffer.h13 行定义.

被这些函数引用 eve::editor::Brush::floodFill().

◆ inBounds()

bool eve::editor::TileBuffer::inBounds ( int  x,
int  y 
) const

◆ resize()

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

在文件 TileBuffer.cpp16 行定义.

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

◆ setGid()

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

在文件 TileBuffer.cpp39 行定义.

引用了 inBounds(), x , 以及 y.

被这些函数引用 eve::editor::EditorHistory::applyLastToBuffer() , 以及 eve::editor::Brush::floodFill().


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