You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.2 KiB
C++

//
// G A M E.O.N.E - LOW LEVEL LIB V1.0
// Copyright (C) 2001 LEVEL ONE ENTERTAINMENT,
// Licensed under the terms of LGPL.
//:---------------------------------------------------------------------------
//:Description
//
// FRAMEWORK Layerobject - displays a simple animation
//
// CActor
// +--CLayer
// +--CLayerSprite
//
// straight forward frame animation and movement
//
//:---------------------------------------------------------------------------
//////////////////////////////////////////////////////////////////////
#if !defined(_LAYER_SPRITE_H)
#define _LAYER_SPRITE_H
#include "llfrm_layer.h"
class CLayerSprite : public CLayer
{
public:
CLayerSprite();
virtual ~CLayerSprite();
virtual bool ParseMsg(const char *arg );
virtual void Draw(llgfx_id id );
virtual void Action(float delta);
virtual CLayerSprite * CreateClone();
void operator=(CLayerSprite *sprite );
void operator=(CLayerSprite &sprite );
llgfx_id m_gfx;
float m_wait; // selbe wie CStabAction_Wait
bool m_ckEnable;
TxU32 m_colorkey;
bool m_colorkeyInit;
float m_angle;
// anim
int m_frame_cnt;
int m_cur_frame;
float m_frame_time;
float m_frame_wait;
};
#endif // !defined(_LAYER_SPRITE_H)