Go to the documentation of this file.
49 void updateGeometry(
const Size& visibleDimension,
const Size& optimizedSize);
50 void updateVisibleTilesCache(
int start = 0);
51 void requestVisibleTilesCacheUpdate() { m_mustUpdateVisibleTilesCache =
true; }
65 void setMultifloor(
bool enable) { m_multifloor = enable; requestVisibleTilesCacheUpdate(); }
114 void move(
int x,
int y);
116 void setAnimated(
bool animated) { m_animated = animated; requestVisibleTilesCacheUpdate(); }
129 Rect calcFramebufferSource(
const Size& destSize);
130 int calcFirstVisibleFloor();
131 int calcLastVisibleFloor();
133 return Point((m_virtualCenterOffset.
x + (position.
x - relativePosition.
x) - (relativePosition.
z - position.
z)) * m_tileSize,
134 (m_virtualCenterOffset.
y + (position.
y - relativePosition.
y) - (relativePosition.
z - position.
z)) * m_tileSize);
137 int m_lockedFirstVisibleFloor;
138 int m_cachedFirstVisibleFloor;
139 int m_cachedLastVisibleFloor;
141 int m_updateTilesPos;
142 Size m_drawDimension;
143 Size m_visibleDimension;
144 Size m_optimizedSize;
145 Point m_virtualCenterOffset;
146 Point m_visibleCenterOffset;
163 std::vector<TilePtr> m_cachedVisibleTiles;
164 std::vector<CreaturePtr> m_cachedFloorVisibleCreatures;
170 std::vector<Point> m_spiral;
172 float m_minimumAmbientLight;
void setAnimated(bool animated)
void setDrawHealthBars(bool enable)
void lockFirstVisibleFloor(int firstVisibleFloor)
int getLockedFirstVisibleFloor()
void setDrawManaBar(bool enable)
void setMinimumAmbientLight(float intensity)
int getCachedFirstVisibleFloor()
PainterShaderProgramPtr getShader()
void setMultifloor(bool enable)
void onTileUpdate(const Position &pos)
void setDrawFlags(Otc::DrawFlags drawFlags)
bool isAutoViewModeEnabled()
int getCachedLastVisibleFloor()
Position getPosition(const Point &point, const Size &mapSize)
bool isFollowingCreature()
void setDrawLights(bool enable)
void setShader(const PainterShaderProgramPtr &shader, float fadein, float fadeout)
void setAddLightMethod(bool add)
void setVisibleDimension(const Size &visibleDimension)
void setAutoViewMode(bool enable)
void unlockFirstVisibleFloor()
void setBlendEquation(Painter::BlendEquation blendEquation)
void setDrawTexts(bool enable)
Position getCameraPosition()
float getMinimumAmbientLight()
void setDrawNames(bool enable)
void setCameraPosition(const Position &pos)
CreaturePtr getFollowingCreature()
bool isDrawingHealthBars()
Otc::DrawFlags getDrawFlags()
Point getVisibleCenterOffset()
void draw(const Rect &rect)
void followCreature(const CreaturePtr &creature)
void optimizeForSize(const Size &visibleSize)
LuaObject, all script-able classes have it as base.
void setViewMode(ViewMode viewMode)
Size getVisibleDimension()
void onMapCenterChange(const Position &pos)