|
#pragma once
#include "CFillRectangle.h"
enum TipoPieza
{
Pieza0 = 0,
Pieza90 = 1,
Pieza180 = 2,
Pieza270 = 3,
Pieza0Inv = 4,
Pieza90Inv = 5,
Pieza180Inv = 6,
Pieza270Inv = 7
};
class CPieza: public CFillRectangle
{
public:
int Angulo;
void Rotar();
void Invertir();
BOOL operator==(const CPieza& otro)
{
BOOL Dimensiones = (otro.Ancho == this->Ancho && otro.Alto == this->Alto);
if (Dimensiones)
return (strncmp(otro.Contenido, this->Contenido, this->Ancho * this->Alto) == 0);
else
return FALSE;
}
int GetPiezaId();
TipoPieza GetPiezaConst();
unsigned char Invertido;
int idpiezainfo;
void GetPiezaAnguloId(int id, int& idpieza, int& Angulo, BOOL& Invertido);
COLORREF GetColor(int Id, int CantPiezas);
int GetComienzo();
int id;
int GetAnguloMas(int AnguloOrig, int Angulo);
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
System developer from Argentina.
Programmed in VB 5,6,.NET, C#, Java, PL-SQL, Transac-SQL, C, C++ and even some "calculator" language.
Love to build small, useful applications.
Usually building big and complicated apps based on solid, reliable components.
Hobbies: reading, photography, chess, paddle, running.