-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCellule.h
50 lines (42 loc) · 957 Bytes
/
Cellule.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// Cellule.h
// Monster Troc 2
//
// Created by Thibault Dardinier on 22/09/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef enum {
MONSTRE,
ROCHER,
VIDE,
CHARGEUR,
GENERATEUR,
GLACE
} TypeCase;
typedef enum {
TRANSPARENT,
BLEU,
ROUGE
} TypeCouleur;
@interface Cellule : NSObject
{
int ligne;
int colonne;
TypeCase etat;
int ID;
TypeCouleur couleur;
UIButton *bouton;
}
- (id)initWithLigne:(int)ligne_ andColonne:(int)colonne_;
- (void)occuperAvecEtat:(TypeCase)etat_ andID:(int)ID_;
- (void)vider;
- (int)distanceAvec:(Cellule*)cellule_;
- (int)ligneDeVueAvec:(Cellule*)cellule_;
- (void)mettreCouleur:(TypeCouleur)color;
- (int)estVide;
@property (readonly) int ligne, colonne, ID;
@property (readonly) TypeCase etat;
@property (readwrite) TypeCouleur couleur;
@property (readwrite, retain) UIButton *bouton;
@end