2012-06-22 14:31:55 +00:00
|
|
|
// * This file is part of the COLOBOT source code
|
|
|
|
// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
|
|
|
|
// * Copyright (C) 2012, Polish Portal of Colobot (PPC)
|
|
|
|
// *
|
|
|
|
// * This program is free software: you can redistribute it and/or modify
|
|
|
|
// * it under the terms of the GNU General Public License as published by
|
|
|
|
// * the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// * (at your option) any later version.
|
|
|
|
// *
|
|
|
|
// * This program is distributed in the hope that it will be useful,
|
|
|
|
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// * GNU General Public License for more details.
|
|
|
|
// *
|
|
|
|
// * You should have received a copy of the GNU General Public License
|
|
|
|
// * along with this program. If not, see http://www.gnu.org/licenses/.
|
|
|
|
|
|
|
|
// pyro.cpp
|
|
|
|
|
2012-07-26 20:26:19 +00:00
|
|
|
#include "graphics/engine/pyro.h"
|
2012-06-22 14:31:55 +00:00
|
|
|
|
2012-08-09 20:50:04 +00:00
|
|
|
#include "common/logger.h"
|
2012-06-22 14:31:55 +00:00
|
|
|
|
2012-08-09 20:50:04 +00:00
|
|
|
|
|
|
|
Gfx::CPyro::CPyro(CInstanceManager* iMan)
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CParticle::CPyro() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
|
|
|
|
Gfx::CPyro::~CPyro()
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::~CPyro() stub!");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gfx::CPyro::DeleteObject(bool all)
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::DeleteObject() stub!");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Gfx::CPyro::Create(Gfx::PyroType type, CObject* pObj, float force)
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::Create() stub!");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Gfx::CPyro::EventProcess(const Event &event)
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::EventProcess() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
Error Gfx::CPyro::IsEnded()
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::IsEnded() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
return ERR_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gfx::CPyro::CutObjectLink(CObject* pObj)
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::CutObjectLink() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gfx::CPyro::DisplayError(PyroType type, CObject* pObj)
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::DisplayError() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Gfx::CPyro::CreateLight(Math::Vector pos, float height)
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::CreateLight() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gfx::CPyro::DeleteObject(bool primary, bool secondary)
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::DeleteObject() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gfx::CPyro::CreateTriangle(CObject* pObj, ObjectType oType, int part)
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::CreateTriangle() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gfx::CPyro::ExploStart()
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::ExploStart() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
void Gfx::CPyro::ExploTerminate()
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::ExploTerminate() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gfx::CPyro::BurnStart()
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::BurnStart() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gfx::CPyro::BurnAddPart(int part, Math::Vector pos, Math::Vector angle)
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::BurnAddPart() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gfx::CPyro::BurnProgress()
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::BurnProgress() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Gfx::CPyro::BurnIsKeepPart(int part)
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::BurnIsKeepPart() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gfx::CPyro::BurnTerminate()
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::BurnTerminate() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gfx::CPyro::FallStart()
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::FallStart() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
|
|
|
|
CObject* Gfx::CPyro::FallSearchBeeExplo()
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::FallSearchBeeExplo() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gfx::CPyro::FallProgress(float rTime)
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::FallProgress() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
|
|
|
|
Error Gfx::CPyro::FallIsEnded()
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::FallIsEnded() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
return ERR_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gfx::CPyro::LightOperFlush()
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::LightOperFlush() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gfx::CPyro::LightOperAdd(float progress, float intensity, float r, float g, float b)
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::LightOperAdd() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gfx::CPyro::LightOperFrame(float rTime)
|
|
|
|
{
|
2012-08-12 17:28:22 +00:00
|
|
|
GetLogger()->Trace("CPyro::LightOperFrame() stub!\n");
|
2012-08-09 20:50:04 +00:00
|
|
|
// TODO!
|
|
|
|
}
|