working on "How to play"
This commit is contained in:
@@ -11,15 +11,11 @@ class SmartSprite : public AnimatedSprite
|
||||
private:
|
||||
bool mEnabled; // Indica si esta habilitado
|
||||
bool mIsOnDestination; // Indica si está en el destino
|
||||
bool mRotate; // Indica si ha de rotar
|
||||
int mDestX; // Posicion de destino en el eje X
|
||||
int mDestY; // Posicion de destino en el eje Y
|
||||
int mId; // Identificador
|
||||
Uint16 mCounter; // Contador interno
|
||||
Uint16 mEnabledCounter; // Contador para deshabilitarlo
|
||||
Uint16 mRotateSpeed; // Velocidad de giro
|
||||
Uint8 *mIntroEvents; // Dirección del array de eventos donde notificar el estado
|
||||
double mRotateAmount; // Cantidad de grados a girar en cada iteración
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
@@ -52,30 +48,12 @@ public:
|
||||
// Establece el valor de la variable
|
||||
void setDestY(int value);
|
||||
|
||||
// Establece el valor de la variable
|
||||
void setRotate(bool value);
|
||||
|
||||
// Establece el valor de la variable
|
||||
void setRotateSpeed(Uint16 value);
|
||||
|
||||
// Establece el valor de la variable
|
||||
void setRotateAmount(double value);
|
||||
|
||||
// Obtiene el valor de la variable
|
||||
int getDestX();
|
||||
|
||||
// Obtiene el valor de la variable
|
||||
int getDestY();
|
||||
|
||||
// Obtiene el valor de la variable
|
||||
bool getRotate();
|
||||
|
||||
// Obtiene el valor de la variable
|
||||
Uint16 getRotateSpeed();
|
||||
|
||||
// Establece la rotacion
|
||||
void rotate();
|
||||
|
||||
// Actualiza la posición y comprueba si ha llegado a su destino
|
||||
bool update();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user