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