1/*
2 Project: GShisen
3
4 Copyright (C) 2003-2009 The GNUstep Application Project
5
6 Author: Enrico Sersale, Riccardo Mottola
7
8 Tile Pair
9
10 This application is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public
12 License as published by the Free Software Foundation; either
13 version 2 of the License, or (at your option) any later version.
14
15 This application is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 Library General Public License for more details.
19
20 You should have received a copy of the GNU General Public
21 License along with this library; if not, write to the Free
22 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
23 */
24
25#import "tilepair.h"
26
27@implementation GSTilePair
28
29- (GSTilePair *)initWithTile:(GSTile *)tileOne andTile:(GSTile *)tileTwo
30{
31    fTile1 = tileOne;
32    fTile2 = tileTwo;
33    return self;
34}
35
36- (void)activateTiles
37{
38    [fTile1 unselect];
39    [fTile1 activate];
40    [fTile2 unselect];
41    [fTile2 activate];
42}
43
44- (void)release
45{
46    fTile1 = nil;
47    fTile2 = nil;
48    [super release];
49}
50
51
52@end
53