ultimatepp/bazaar/MapCommon/IMapRenderStates.cpp
Sc0rch 9959d8888c MapRender: First release (FormEditorCommon, FormEditorProperties, Map, MapBG, MapCommon, MapEditor, MapRenderTest.
git-svn-id: svn://ultimatepp.org/upp/trunk@4180 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-11-18 06:28:11 +00:00

30 lines
672 B
C++

#include "IMapRender.h"
void IMapRender::StateOff(dword state)
{
IMapItem::StateOff(state);
for (int i = 0; i < _items.GetCount(); ++i)
if (_items[i])
_items[i]->StateOff(state);
}
void IMapRender::StateOn (dword state)
{
IMapItem::StateOn(state);
for (int i = 0; i < _items.GetCount(); ++i)
if (_items[i])
_items[i]->StateOn(state);
}
bool IMapRender::IsState (dword state)
{
return IMapItem::IsState(state);
}
void IMapRender::PerformState(dword state, const String& param)
{
IMapItem::PerformState(state, param);
for (int i = 0; i < _items.GetCount(); ++i)
if (_items[i])
_items[i]->PerformState(state, param);
}