home *** CD-ROM | disk | FTP | other *** search
/ NetGuide 2004 April / NETGUID0404N.iso / mac / games / Mac / Brickoids / brickoidsx.dmg / Source / bricks.h / bricks.h
Encoding:
C/C++ Source or Header  |  2002-01-14  |  1.5 KB  |  55 lines  |  [TEXT/CWIE]

  1. /*
  2.     Brickoids X -- Simple brick game for MacOS X
  3.     Copyright (C) 1997-2002 Thorlindur Thorolfsson & Sveinbjorn Thordarson
  4.     Soth Development (http://soth.zoneit.com)
  5.     
  6.     Original source code by Thorlindur Thorolfsson
  7.     Porting to MacOS X by Sveinbjorn Thordarson
  8.  
  9.     This software was open-sourced on the 1st of May, 2000.
  10.  
  11.     This program is free software; you can redistribute it and/or modify
  12.     it under the terms of the GNU General Public License as published by
  13.     the Free Software Foundation; either version 2 of the License, or
  14.     (at your option) any later version.
  15.  
  16.     This program is distributed in the hope that it will be useful,
  17.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  18.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19.     GNU General Public License for more details.
  20.  
  21.     You should have received a copy of the GNU General Public License
  22.     along with this program; if not, write to the Free Software
  23.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24.  
  25. */
  26.  
  27.  
  28. #include <Carbon/Carbon.h>
  29. #pragma once
  30. //globals
  31.  
  32. typedef struct
  33. {
  34.     short numberOfBricks;
  35.     short brickArray[12][10];
  36. } BrickLayout;
  37.  
  38. typedef BrickLayout **BrickLayoutHandle;
  39.  
  40. typedef struct
  41. {
  42.     short hiScore;
  43. } ScoreResource;
  44.  
  45. typedef ScoreResource **ScoreResourceHandle;
  46.  
  47. #define kStartUpPicID 129
  48.  
  49. #define kBallNum         0
  50. #define kRedBrickNum     1
  51. #define kGreenBrickNum     2
  52. #define kBlueBrickNum     3
  53. #define kPaddleNum         4
  54.  
  55. #define kMaxBrickRects 6