/***************************************************************************
 *             __________               __   ___.
 *   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
 *   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
 *   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
 *   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
 *                     \/            \/     \/    \/            \/
 *
 * Copyright (C) 2014 Franklin Wei, Benjamin Brown
 * Copyright (C) 2004 Gregory Montoir
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 * KIND, either express or implied.
 *
 ***************************************************************************/

#ifndef __AW_PARTS_
#define __AW_PARTS_

#include "intern.h"
#include "awendian.h"

/* The game is divided in 10 parts. */
#define GAME_NUM_PARTS 10

#define GAME_PART_FIRST  0x3E80
#define GAME_PART1       0x3E80
#define GAME_PART2       0x3E81   /* Introduction */
#define GAME_PART3       0x3E82
#define GAME_PART4       0x3E83   /* Wake up in the suspended jail */
#define GAME_PART5       0x3E84
#define GAME_PART6       0x3E85   /* BattleChar sequence */
#define GAME_PART7       0x3E86
#define GAME_PART8       0x3E87
#define GAME_PART9       0x3E88
#define GAME_PART10      0x3E89
#define GAME_PART_LAST   0x3E89

extern const uint16_t memListParts[GAME_NUM_PARTS][4];

/* For each part of the game, four resources are referenced. */
#define MEMLIST_PART_PALETTE 0
#define MEMLIST_PART_CODE    1
#define MEMLIST_PART_POLY_CINEMATIC  2
#define MEMLIST_PART_VIDEO2  3


#define MEMLIST_PART_NONE 0x00


#endif
