Files
LGram16 dd97ddec92 Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code:
- Client: Game client source (moved to Client/Client/)
- Server: Game server source
- GameTools: Development tools
- CryptoSource: Encryption utilities
- database: Database scripts
- Script: Game scripts
- rylCoder_16.02.2008_src: Legacy coder tools
- GMFont, Game: Additional resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 20:17:20 +09:00

55 lines
1.2 KiB
C++

// Particle.h: interface for the CParticle class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PARTICLE_H__B3B3EC93_033B_41B4_A21F_5C8245083E52__INCLUDED_)
#define AFX_PARTICLE_H__B3B3EC93_033B_41B4_A21F_5C8245083E52__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "3DMath.h"
#include "List.h"
#include "Vertex.h"
#include "Texture.h"
#include "BaseDataDefine.h"
#define Random() (float)(rand()%10000-5000)/5000.0f
class CParticle
{
protected:
static matrix *m_matPosition;
class ParticleNode
{
public:
vector3 m_vecPos0;
vector3 m_vecPos;
vector3 m_vecVelocity0;
vector3 m_vecVelocity;
vector3 m_vecAccelate;
float m_fSize;
float m_fFadeTime;
float m_fNowTime;
color m_clrStartDiffuse;
color m_clrEndDiffuse;
color m_clrNowDiffuse;
};
CTexture m_ParticleTexture;
public:
List<ParticleNode> m_ParticleNodeList;
static void SetMatPosition(matrix *matPosition){m_matPosition=matPosition;};
virtual bool Update(float fUpdateTime);
virtual void Render(LPDIRECT3DDEVICE8 pd3dDevice);
virtual void Create();
CParticle();
virtual ~CParticle();
};
#endif // !defined(AFX_PARTICLE_H__B3B3EC93_033B_41B4_A21F_5C8245083E52__INCLUDED_)