summaryrefslogtreecommitdiff
path: root/common/piece.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/piece.h')
-rw-r--r--common/piece.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/common/piece.h b/common/piece.h
index 6304681..48c7f11 100644
--- a/common/piece.h
+++ b/common/piece.h
@@ -15,21 +15,22 @@ class PieceInfo;
#define LC_PIECE_SELECTED 0x02
#define LC_PIECE_FOCUSED 0x04
-typedef enum {
- LC_PK_POSITION,
- LC_PK_ROTATION,
- LC_PK_COUNT
+typedef enum
+{
+ LC_PK_POSITION,
+ LC_PK_ROTATION,
+ LC_PK_COUNT
} LC_PK_TYPES;
class Piece : public Object
{
public:
- Piece (PieceInfo* pPieceInfo);
- ~Piece ();
+ Piece (PieceInfo* pPieceInfo);
+ ~Piece ();
- void Select (bool bSelecting, bool bFocus, bool bMultiple);
- virtual void InsertTime (unsigned short start, bool animation, unsigned short time);
- virtual void RemoveTime (unsigned short start, bool animation, unsigned short time);
+ void Select (bool bSelecting, bool bFocus, bool bMultiple);
+ virtual void InsertTime (unsigned short start, bool animation, unsigned short time);
+ virtual void RemoveTime (unsigned short start, bool animation, unsigned short time);
virtual bool IntersectsVolume(const Vector4* Planes, int NumPlanes);
@@ -50,6 +51,9 @@ public:
bool IsFocused()
{ return (m_nState & LC_PIECE_FOCUSED) != 0; }
+ const char* GetName() const
+ { return m_strName; };
+
void MinIntersectDist(LC_CLICKLINE* pLine);
bool IsVisible(unsigned short nTime, bool bAnimation);
void Initialize(float x, float y, float z, unsigned char nStep, unsigned short nFrame, unsigned char nColor);