colobot/src/graphics/engine/particle.cpp

309 lines
7.7 KiB
C++
Raw Normal View History

// * 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/.
#include "graphics/engine/particle.h"
#include "common/logger.h"
2012-09-19 21:50:28 +00:00
// Graphics module namespace
namespace Gfx {
CParticle::CParticle(CInstanceManager* iMan, CEngine* engine)
{
GetLogger()->Trace("CParticle::CParticle() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
CParticle::~CParticle()
{
GetLogger()->Trace("CParticle::~CParticle() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::SetDevice(CDevice* device)
{
GetLogger()->Trace("CParticle::SetDevice() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::FlushParticle()
{
GetLogger()->Trace("CParticle::FlushParticle() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::FlushParticle(int sheet)
{
GetLogger()->Trace("CParticle::FlushParticle() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
int CParticle::CreateParticle(Math::Vector pos, Math::Vector speed, Math::Point dim,
ParticleType type, float duration, float mass,
float windSensitivity, int sheet)
{
GetLogger()->Trace("CParticle::CreateParticle() stub!\n");
// TODO!
return 0;
}
2012-09-19 21:50:28 +00:00
int CParticle::CreateFrag(Math::Vector pos, Math::Vector speed, EngineTriangle *triangle,
ParticleType type, float duration, float mass,
float windSensitivity, int sheet)
{
GetLogger()->Trace("CParticle::CreateFrag() stub!\n");
// TODO!
return 0;
}
2012-09-19 21:50:28 +00:00
int CParticle::CreatePart(Math::Vector pos, Math::Vector speed, ParticleType type,
float duration, float mass, float weight,
float windSensitivity, int sheet)
{
GetLogger()->Trace("CParticle::CreatePart() stub!\n");
// TODO!
return 0;
}
2012-09-19 21:50:28 +00:00
int CParticle::CreateRay(Math::Vector pos, Math::Vector goal, ParticleType type, Math::Point dim,
float duration, int sheet)
{
GetLogger()->Trace("CParticle::CreateRay() stub!\n");
// TODO!
return 0;
}
2012-09-19 21:50:28 +00:00
int CParticle::CreateTrack(Math::Vector pos, Math::Vector speed, Math::Point dim, ParticleType type,
float duration, float mass, float length, float width)
{
GetLogger()->Trace("CParticle::CreateTrack() stub!\n");
// TODO!
return 0;
}
2012-09-19 21:50:28 +00:00
void CParticle::CreateWheelTrace(const Math::Vector &p1, const Math::Vector &p2, const Math::Vector &p3,
const Math::Vector &p4, ParticleType type)
{
GetLogger()->Trace("CParticle::CreateWheelTrace() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::DeleteParticle(ParticleType type)
{
GetLogger()->Trace("CParticle::DeleteParticle() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::DeleteParticle(int channel)
{
GetLogger()->Trace("CParticle::DeleteParticle() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::SetObjectLink(int channel, CObject *object)
{
GetLogger()->Trace("CParticle::SetObjectLink() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::SetObjectFather(int channel, CObject *object)
{
GetLogger()->Trace("CParticle::SetObjectFather() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::SetPosition(int channel, Math::Vector pos)
{
GetLogger()->Trace("CParticle::SetPosition() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::SetDimension(int channel, Math::Point dim)
{
GetLogger()->Trace("CParticle::SetDimension() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::SetZoom(int channel, float zoom)
{
GetLogger()->Trace("CParticle::SetZoom() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::SetAngle(int channel, float angle)
{
GetLogger()->Trace("CParticle::SetAngle() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::SetIntensity(int channel, float intensity)
{
GetLogger()->Trace("CParticle::SetIntensity() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::SetParam(int channel, Math::Vector pos, Math::Point dim, float zoom, float angle, float intensity)
{
GetLogger()->Trace("CParticle::SetParam() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::SetPhase(int channel, ParticlePhase phase, float duration)
{
GetLogger()->Trace("CParticle::SetPhase() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
bool CParticle::GetPosition(int channel, Math::Vector &pos)
{
GetLogger()->Trace("CParticle::GetPosition() stub!\n");
// TODO!
return true;
}
2012-09-19 21:50:28 +00:00
Color CParticle::GetFogColor(Math::Vector pos)
{
GetLogger()->Trace("CParticle::GetFogColor() stub!\n");
// TODO!
2012-09-19 21:50:28 +00:00
return Color();
}
2012-09-19 21:50:28 +00:00
void CParticle::SetFrameUpdate(int sheet, bool update)
{
GetLogger()->Trace("CParticle::SetFrameUpdate() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::FrameParticle(float rTime)
{
GetLogger()->Trace("CParticle::FrameParticle() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::DrawParticle(int sheet)
{
GetLogger()->Trace("CParticle::DrawParticle() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
bool CParticle::WriteWheelTrace(const char *filename, int width, int height, Math::Vector dl, Math::Vector ur)
{
GetLogger()->Trace("CParticle::WriteWheelTrace() stub!\n");
// TODO!
return true;
}
2012-09-19 21:50:28 +00:00
void CParticle::DeleteRank(int rank)
{
GetLogger()->Trace("CParticle::DeleteRank() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
bool CParticle::CheckChannel(int &channel)
{
GetLogger()->Trace("CParticle::CheckChannel() stub!\n");
// TODO!
return true;
}
2012-09-19 21:50:28 +00:00
void CParticle::DrawParticleTriangle(int i)
{
GetLogger()->Trace("CParticle::DrawParticleTriangle() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::DrawParticleNorm(int i)
{
GetLogger()->Trace("CParticle::DrawParticleNorm() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::DrawParticleFlat(int i)
{
GetLogger()->Trace("CParticle::DrawParticleFlat() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::DrawParticleFog(int i)
{
GetLogger()->Trace("CParticle::DrawParticleFog() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::DrawParticleRay(int i)
{
GetLogger()->Trace("CParticle::DrawParticleRay() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::DrawParticleSphere(int i)
{
GetLogger()->Trace("CParticle::DrawParticleSphere() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::DrawParticleCylinder(int i)
{
GetLogger()->Trace("CParticle::DrawParticleCylinder() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
void CParticle::DrawParticleWheel(int i)
{
GetLogger()->Trace("CParticle::DrawParticleWheel() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
CObject* CParticle::SearchObjectGun(Math::Vector old, Math::Vector pos, ParticleType type, CObject *father)
{
GetLogger()->Trace("CParticle::SearchObjectGun() stub!\n");
// TODO!
return nullptr;
}
2012-09-19 21:50:28 +00:00
CObject* CParticle::SearchObjectRay(Math::Vector pos, Math::Vector goal, ParticleType type, CObject *father)
{
GetLogger()->Trace("CParticle::SearchObjectRay() stub!\n");
// TODO!
return nullptr;
}
2012-09-19 21:50:28 +00:00
void CParticle::Play(Sound sound, Math::Vector pos, float amplitude)
{
GetLogger()->Trace("CParticle::Play() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
bool CParticle::TrackMove(int i, Math::Vector pos, float progress)
{
GetLogger()->Trace("CParticle::TrackMove() stub!\n");
// TODO!
return true;
}
2012-09-19 21:50:28 +00:00
void CParticle::TrackDraw(int i, ParticleType type)
{
GetLogger()->Trace("CParticle::TrackDraw() stub!\n");
// TODO!
}
2012-09-19 21:50:28 +00:00
} // namespace Gfx