ВУЗ:
Составители:
Рубрика:
24
Graphics::TBitmap* image;
bool mask;
// Методы
void __fastcall SetVisible(bool const);
TRect __fastcall GetSpriteRect();
void __fastcall BeginPaint();
void __fastcall EndPaint();
void __fastcall SetMask(int const);
bool __fastcall Intersect(int const,int const);
protected:
// Методы
void __fastcall virtual PaintPicture()=0;
void __fastcall virtual Restore();
void __fastcall virtual Paint();
public:
// Свойства
__property bool Visible={read=visible,write=SetVisible};
__property int Z={read=z};
__property TSpriteList* SpriteList={read=spriteList};
__property OnMoveEvent OnMove={read=onMove,write=onMove};
__property TSize Size={read=size};
__property TPoint Location={read=location};
__property TRect SpriteRect={read=GetSpriteRect};
// Конструктор
__fastcall TSprite(TRect const);
// Деструктор
__fastcall virtual ~TSprite();
// Методы
bool __fastcall virtual Move(TSize const);
bool __fastcall virtual MoveTo(TPoint const);
};
// Тип динамического массива точек со следами спрайта
typedef DynamicArray <TPoint> TTracePoints;
//TTracedSprite
class TTracedSprite:public TSprite
{
private:
// Поля
TTracePoints trPoints;
bool traced;
bool traceColored;
TColor traceColor;
TPoint center;
// Метод
void __fastcall SetTraceColor(TColor const);
Страницы
- « первая
- ‹ предыдущая
- …
- 22
- 23
- 24
- 25
- 26
- …
- следующая ›
- последняя »