engine/game/bombSight.h
2024-01-07 04:36:33 +00:00

49 lines
1.1 KiB
C++

//-----------------------------------------------------------------------------
// V12 Engine
//
// Copyright (c) 2001 GarageGames.Com
// Portions Copyright (c) 2001 by Sierra Online, Inc.
//-----------------------------------------------------------------------------
#ifndef _BOMBSIGHT_H_
#define _BOMBSIGHT_H_
#ifndef _SCENEOBJECT_H_
#include "sim/sceneObject.h"
#endif
#ifndef _RESMANAGER_H_
#include "core/resManager.h"
#endif
class TSShape;
class TSShapeInstance;
class BombSight : public SceneObject
{
typedef SceneObject Parent;
Resource<TSShape> mMoveShape;
TSShapeInstance* mShapeInstance;
StringTableEntry mDtsFileName;
bool mRenderObject;
F32 mAlpha;
protected:
bool onAdd();
void onRemove();
// Rendering
protected:
bool prepRenderImage(SceneState*, const U32, const U32, const bool);
void renderObject(SceneState*, SceneRenderImage*);
public:
BombSight();
~BombSight();
void setDtsShape(StringTableEntry);
void setRender(const bool , const F32 alpha = 0.0f);
DECLARE_CONOBJECT(BombSight);
};
#endif // _H_BOMBSIGHT