1 /* 2 Project: GShisen 3 4 Copyright (C) 2003-2009 The GNUstep Application Project 5 6 Author: Enrico Sersale, Riccardo Mottola 7 8 Tile 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 <Foundation/Foundation.h> 26 #import <AppKit/AppKit.h> 27 28 @class GSBoard; 29 30 @interface GSTile : NSView 31 { 32 NSImage *icon; 33 NSString *iconName, *iconSelName; 34 int group; 35 NSNumber *rndpos; 36 GSBoard *theBoard; 37 BOOL isSelect, isActive, isBorderTile; 38 int px, py; 39 } 40 41 - (id)initOnBoard:(GSBoard *)aboard 42 iconRef:(NSString *)ref 43 group:(int)grp 44 rndpos:(int)rnd 45 isBorderTile:(BOOL)btile; 46 - (void)setPositionOnBoard:(int)x posy:(int)y; 47 - (void)select; 48 - (void)hightlight; 49 - (void)unselect; 50 - (void)deactivate; 51 - (void)activate; 52 - (BOOL)isSelect; 53 - (BOOL)isActive; 54 - (BOOL)isBorderTile; 55 - (int)group; 56 - (NSNumber *)rndpos; 57 - (int)px; 58 - (int)py; 59 60 @end 61 62 63