-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLevel.m
More file actions
48 lines (39 loc) · 773 Bytes
/
Level.m
File metadata and controls
48 lines (39 loc) · 773 Bytes
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
//
// Level.m
//
//
// Created by admin on 12-10-11.
// Copyright (c) 2012 Esri Canada. All rights reserved.
//
#import "Level.h"
@implementation Level
-(void) hide:(AGSGraphicsLayer*) layer
{
for (Room *r in self.room)
{
[[self.room objectForKey:r] hide:layer];
}
}
-(void) show:(AGSGraphicsLayer*) layer
{
for (Room *r in self.room)
{
[[self.room objectForKey:r] show:layer];
}
}
-(void) addRoom:(Room*)newRoom
{
[self.room setObject:newRoom forKey:newRoom.number];
}
-(Room*) getRoom:(NSString*)roomName
{
return [self.room objectForKey:roomName];
}
-initWithPlanId:(NSString*)plan
{
self = [super init];
self.room = [[NSMutableDictionary alloc]init];
self.planId = plan;
return self;
}
@end