Otclient  14/8/2020
Minimap Class Reference

#include <minimap.h>

Public Member Functions

void init ()
 
void terminate ()
 
void clean ()
 
void draw (const Rect &screenRect, const Position &mapCenter, float scale, const Color &color)
 
Point getTilePoint (const Position &pos, const Rect &screenRect, const Position &mapCenter, float scale)
 
Position getTilePosition (const Point &point, const Rect &screenRect, const Position &mapCenter, float scale)
 
Rect getTileRect (const Position &pos, const Rect &screenRect, const Position &mapCenter, float scale)
 
void updateTile (const Position &pos, const TilePtr &tile)
 
const MinimapTilegetTile (const Position &pos)
 
bool loadImage (const std::string &fileName, const Position &topLeft, float colorFactor)
 
void saveImage (const std::string &fileName, const Rect &mapRect)
 
bool loadOtmm (const std::string &fileName)
 
void saveOtmm (const std::string &fileName)
 

Detailed Description

Definition at line 78 of file minimap.h.

Member Function Documentation

◆ clean()

void Minimap::clean ( )

Definition at line 95 of file minimap.cpp.

Here is the caller graph for this function:

◆ draw()

void Minimap::draw ( const Rect screenRect,
const Position mapCenter,
float  scale,
const Color color 
)

Definition at line 101 of file minimap.cpp.

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

◆ getTile()

const MinimapTile & Minimap::getTile ( const Position pos)

Definition at line 214 of file minimap.cpp.

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

◆ getTilePoint()

Point Minimap::getTilePoint ( const Position pos,
const Rect screenRect,
const Position mapCenter,
float  scale 
)

Definition at line 152 of file minimap.cpp.

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

◆ getTilePosition()

Position Minimap::getTilePosition ( const Point point,
const Rect screenRect,
const Position mapCenter,
float  scale 
)

Definition at line 163 of file minimap.cpp.

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

◆ getTileRect()

Rect Minimap::getTileRect ( const Position pos,
const Rect screenRect,
const Position mapCenter,
float  scale 
)

Definition at line 174 of file minimap.cpp.

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

◆ init()

void Minimap::init ( )

Definition at line 86 of file minimap.cpp.

Here is the caller graph for this function:

◆ loadImage()

bool Minimap::loadImage ( const std::string &  fileName,
const Position topLeft,
float  colorFactor 
)

Definition at line 225 of file minimap.cpp.

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

◆ loadOtmm()

bool Minimap::loadOtmm ( const std::string &  fileName)

Definition at line 306 of file minimap.cpp.

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

◆ saveImage()

void Minimap::saveImage ( const std::string &  fileName,
const Rect mapRect 
)

Definition at line 301 of file minimap.cpp.

Here is the caller graph for this function:

◆ saveOtmm()

void Minimap::saveOtmm ( const std::string &  fileName)

Definition at line 369 of file minimap.cpp.

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

◆ terminate()

void Minimap::terminate ( )

Definition at line 90 of file minimap.cpp.

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

◆ updateTile()

void Minimap::updateTile ( const Position pos,
const TilePtr tile 
)

Definition at line 193 of file minimap.cpp.

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 files: