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.
l3lib/l3lib_vc3/frm/llfrm_layerfloatingnumber.h

56 lines
1.3 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
// +--CLayerFloatingNumber
//
// Displays a Digit by cloning the sprite
//
//:---------------------------------------------------------------------------
//////////////////////////////////////////////////////////////////////
#if !defined(_LAYER_FLOATINGNUMBER_H)
#define _LAYER_FLOATINGNUMBER_H
#include "llfrm_layersprite.h"
enum { MODE_NONE, MODE_FILL };
class CLayerFloatingNumber : public CLayerSprite
{
public:
CLayerFloatingNumber();
virtual ~CLayerFloatingNumber();
virtual bool ParseMsg(const char *arg );
virtual void Draw(llgfx_id id );
virtual void Action(float delta);
int m_mode; // RIGHT LEFT CENTERED FILL
int m_size; // Count digits
CVec2f m_xyspacing;
bool m_bXyspacingSet;
int GetValue(); //liefert wert
void SetValue(int newvalue); //Liefert alten Wert, setzt neuen
void SetValue(const char * string);
private:
char *m_number; // Wert als String aus script
int m_value; // der wert übersetzt
};
#endif // !defined(_LAYER_FLOATINGNUMBER_H)