/
ASIWorldMap.h
38 lines (29 loc) · 978 Bytes
/
ASIWorldMap.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
//
// ASIWorldMap.h
// Part of ASIPathFinder --> http://allseeing-i.com/ASIPathFinder
//
// Created by Ben Copsey on 28/02/2010.
// Copyright 2010 All-Seeing Interactive. All rights reserved.
//
// A 3-dimensional map that stores the location of objects
#import <Foundation/Foundation.h>
#import "ASIObjectMap.h"
#import "ASIPathSearchDataTypes.h"
@class ASIMapObject;
@class ASISpaceTimeMap;
@interface ASIWorldMap : ASIObjectMap {
NSMutableArray *objects;
NSMutableArray *teams;
}
// Convienence constructor, hard coded for a 20*20*1 size used in the sample Mac app
+ (id)map;
// Add an object to the map
- (void)addObject:(ASIMapObject *)object;
// Remove an object from the map
- (void)removeObject:(ASIMapObject *)object;
- (void)removeObjectAtPosition:(Position3D)position;
// Returns an array of all the units on this map
- (NSArray *)units;
@property (retain, nonatomic) NSMutableArray *objects;
@property (retain, nonatomic) NSMutableArray *teams;
@end