Debian Codegraph @

apps/demos/drop/TsPieces.h

raw symbols SCIP
1 /*
2 *
3 * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * Further, this software is distributed without any warranty that it is
16 * free of the rightful claim of any third person regarding infringement
17 * or the like. Any license provided herein, whether implied or
18 * otherwise, applies only to this software file. Patent licenses, if
19 * any, provided herein do not apply to combinations of this program with
20 * other software, or any other product whatsoever.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
27 * Mountain View, CA 94043, or:
28 *
29 * http://www.sgi.com
30 *
31 * For further information regarding this notice, see:
32 *
33 * http://oss.sgi.com/projects/GenInfo/NoticeExplan/
34 *
35 */
36
37 // -*- C++ -*-
38
39 /*
40 _______________________________________________________________________
41 ______________ S I L I C O N G R A P H I C S I N C . ____________
42 |
43 | $Revision: 1.1.1.1 $
44 |
45 | Description:
46 | This file describes the pieces used in the drop game.
47 | All pieces are derived from the base class TsPiece.
48 |
49 | Classes:
50 | TsEll, TsTee, TsZee, TsLTri, TsMTri, TsRtri
51 |
52 | Author: Dave Immel
53 |
54 ______________ S I L I C O N G R A P H I C S I N C . ____________
55 _______________________________________________________________________
56 */
57
58 #ifndef _TS_PIECES_
59 #define _TS_PIECES_cxx . . $ `apps/demos/drop/TsPieces.h:59:9`!
60
61 #include "TsPiece.h"cxx . . $ `<file>/apps/demos/drop/TsPiece.h`/
62
63 //////////////////////////////////////////////////////////////////////////////
64 //
65 // Class: TsEll
66 //
67 // This piece is an 'L' shape composed of four blocks, three in a row, and
68 // the fourth to one side at the end.
69 //
70 // ***
71 // *
72 //
73 //////////////////////////////////////////////////////////////////////////////
74
75 class TsEllcxx . . $ TsEll# : public TsPiececxx . . $ TsPiece# {
76 public:
77 TsEllcxx . . $ TsEll#TsEll(49f6e7a06ebc5aa8).();
78 ~cxx . . $ TsEll#`~TsEll`(49f6e7a06ebc5aa8).TsEllcxx . . $ TsEll#();
79 };
80
81 //////////////////////////////////////////////////////////////////////////////
82 //
83 // Class: TsTee
84 //
85 // This piece is an 'T' shape composed of four blocks, three in a row, and
86 // the fourth to one side in the middle of the other three.
87 //
88 // ***
89 // *
90 //
91 //////////////////////////////////////////////////////////////////////////////
92
93 class TsTeecxx . . $ TsTee# : public TsPiececxx . . $ TsPiece# {
94 public:
95 TsTeecxx . . $ TsTee#TsTee(49f6e7a06ebc5aa8).();
96 ~cxx . . $ TsTee#`~TsTee`(49f6e7a06ebc5aa8).TsTeecxx . . $ TsTee#();
97 };
98
99 //////////////////////////////////////////////////////////////////////////////
100 //
101 // Class: TsZee
102 //
103 // This piece is an 'Z' shape composed of four blocks, two in a row, and
104 // two more to one side and shifted over one space.
105 //
106 // **
107 // **
108 //
109 //////////////////////////////////////////////////////////////////////////////
110
111 class TsZeecxx . . $ TsZee# : public TsPiececxx . . $ TsPiece# {
112 public:
113 TsZeecxx . . $ TsZee#TsZee(49f6e7a06ebc5aa8).();
114 ~cxx . . $ TsZee#`~TsZee`(49f6e7a06ebc5aa8).TsZeecxx . . $ TsZee#();
115 };
116
117 //////////////////////////////////////////////////////////////////////////////
118 //
119 // Class: TsLTri
120 //
121 // This piece is a triangle shape with an extra block over the left
122 // block of the triangle.
123 //
124 //////////////////////////////////////////////////////////////////////////////
125
126 class TsLTricxx . . $ TsLTri# : public TsPiececxx . . $ TsPiece# {
127 public:
128 TsLTricxx . . $ TsLTri#TsLTri(49f6e7a06ebc5aa8).();
129 ~cxx . . $ TsLTri#`~TsLTri`(49f6e7a06ebc5aa8).TsLTricxx . . $ TsLTri#();
130 };
131
132 //////////////////////////////////////////////////////////////////////////////
133 //
134 // Class: TsMTri
135 //
136 // This piece is a triangle shape with an extra block over the middle
137 // block of the triangle.
138 //
139 //////////////////////////////////////////////////////////////////////////////
140
141 class TsMTricxx . . $ TsMTri# : public TsPiececxx . . $ TsPiece# {
142 public:
143 TsMTricxx . . $ TsMTri#TsMTri(49f6e7a06ebc5aa8).();
144 ~cxx . . $ TsMTri#`~TsMTri`(49f6e7a06ebc5aa8).TsMTricxx . . $ TsMTri#();
145 };
146
147 //////////////////////////////////////////////////////////////////////////////
148 //
149 // Class: TsRTri
150 //
151 // This piece is a triangle shape with an extra block over the right
152 // block of the triangle.
153 //
154 //////////////////////////////////////////////////////////////////////////////
155
156 class TsRTricxx . . $ TsRTri# : public TsPiececxx . . $ TsPiece# {
157 public:
158 TsRTricxx . . $ TsRTri#TsRTri(49f6e7a06ebc5aa8).();
159 ~cxx . . $ TsRTri#`~TsRTri`(49f6e7a06ebc5aa8).TsRTricxx . . $ TsRTri#();
160 };
161
162 #endif /* _TS_PIECES_ */
163
164