Files
SteamworksSDK/SteamworksExample/PhotonBeam.h
T
Riley Labrecque 1383b358e4 v1.00
2016-07-07 05:54:47 -06:00

31 lines
890 B
C++

//========= Copyright © 1996-2008, Valve LLC, All rights reserved. ============
//
// Purpose: Class for rendering photon beams
//
// $NoKeywords: $
//=============================================================================
#ifndef PHOTONBEAM_H
#define PHOTONBEAM_H
#include "GameEngine.h"
#include "SpaceWarEntity.h"
#include "SpaceWar.h"
class CPhotonBeam : public CSpaceWarEntity
{
public:
// Constructor
CPhotonBeam( CGameEngine *pGameEngine, float xPos, float yPos, DWORD dwBeamColor, float flInitialRotation, float flInitialXVelocity, float flInitialYVelocity );
// Check if the photon beam needs to die
bool BIsBeamExpired() { return m_pGameEngine->GetGameTickCount() > m_ulTickCountToDieAt; }
// Update with new data from server
void OnReceiveServerUpdate( ServerPhotonBeamUpdateData_t UpdateData );
private:
uint64 m_ulTickCountToDieAt;
};
#endif // PHOTONBEAM_H