Пример #1
0
void Fireball::Collide(Fireball* src, Map& map)
{
	map.Clear(pos);
	map.Clear(src->Pos());
	delete src;
	delete this;
}
Пример #2
0
void Fireball::Collide(Character* src, Map& map)
{
	src->TakeDamage(Damage());
	if (src->Health() <= 0)
		map.Clear(src->Pos());
	map.Clear(pos);
	map.Swap(map[src->Pos()], map[pos]);
	map.SetActed(src->Pos(), 1);
	delete this;
}
Пример #3
0
void Medkit::Collide(Character* src, Map& map)
{
	src->Heal(PowerHeal());
	map.Clear(pos);
	map.SetActed(src->Pos(), 1);
	delete this;
}
Пример #4
0
void SDPFactory::ShutDown() {
  sSDPFactoryFuncMap.Clear();

  FOR_EACH_MAP(SDPInstanceIter, sSDPInstanceMap, HashedString,
               ShaderDataProvider*) {
    SafeDelete(SDPInstanceIter.GetValue());
  }
Пример #5
0
PrintManager::~PrintManager() {
  sPrintLevels.Clear();
  SafeDeleteArray(m_StringBuffer);
#if OPENLOGFILE
// Do nothing.
#else
  SafeDelete(m_LogStream);
#endif
}
Пример #6
0
void RodinBTNodeFactory::ShutDown() { sFactoryFuncMap.Clear(); }
Пример #7
0
void ReverseHash::ShutDown()
{
	gReverseHashEnabled = false;
	gReverseHashMap.Clear();
}