/****************************************************************************************
 *                                   File Information                                   *
 *======================================================================================*
 *                                                                                      *
 *                          Header file for XMastree stuff....                          *
 *                                                                                      *
 *==========+=============+=============================================================*
 * YY/MM/DD |     Who     |                          Description                        *
 *==========+=============+=============================================================*
 * 99/12/20 |   Nemonic   | 5 frames instead of 4 in light anim.....etc etc             *
 *----------+-------------+-------------------------------------------------------------*
 * 99/12/13 |   Nemonic   | Created....                                                 *
 ****************************************************************************************/

/****************************************************************************************
 *                                       Includes                                       *
 ****************************************************************************************/

#include <exec/types.h>

/****************************************************************************************
 *                                       Defines                                        *
 ****************************************************************************************/

#define XMASTREE_WIDTH          128
#define XMASTREE_HEIGHT         192
#define XMASTREE_SIZE           XMASTREE_WIDTH * XMASTREE_HEIGHT * 4

#define XMASTREE_LIGHTWIDTH     16
#define XMASTREE_LIGHTHEIGHT    16
#define XMASTREE_NUMLIGHTS      10
#define XMASTREE_LIGHTFRAMES    5
#define XMASTREE_LIGHTSIZE      XMASTREE_LIGHTWIDTH * XMASTREE_LIGHTHEIGHT * XMASTREE_LIGHTFRAMES * 4

#define XMASTREE_SLEEPFRAMES    5

/****************************************************************************************
 *                                       Typedefs                                       *
 ****************************************************************************************/

typedef struct
{
    UWORD   X, Y;
    WORD    TwinkleTime;
    UBYTE   Frame;
    ULONG   *ARGBData;
} TreeLight;

/****************************************************************************************
 *                                      Prototypes                                      *
 ****************************************************************************************/

BOOL    InitXMasTree(BYTE, BYTE);
void    FreeXMasTree(void);
void    DoXMasTree(void);
