summary refs log tree commit diff stats
path: root/libs/cocos2d/CCTMXObjectGroup.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/cocos2d/CCTMXObjectGroup.h')
-rwxr-xr-xlibs/cocos2d/CCTMXObjectGroup.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/libs/cocos2d/CCTMXObjectGroup.h b/libs/cocos2d/CCTMXObjectGroup.h new file mode 100755 index 0000000..02feadf --- /dev/null +++ b/libs/cocos2d/CCTMXObjectGroup.h
@@ -0,0 +1,67 @@
1/*
2 * cocos2d for iPhone: http://www.cocos2d-iphone.org
3 *
4 * Copyright (c) 2010 Neophit
5 *
6 * Copyright (c) 2010 Ricardo Quesada
7 * Copyright (c) 2011 Zynga Inc.
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a copy
10 * of this software and associated documentation files (the "Software"), to deal
11 * in the Software without restriction, including without limitation the rights
12 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 * copies of the Software, and to permit persons to whom the Software is
14 * furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included in
17 * all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 * THE SOFTWARE.
26 *
27 *
28 * TMX Tiled Map support:
29 * http://www.mapeditor.org
30 *
31 */
32
33#import "CCNode.h"
34
35
36@class CCTMXObjectGroup;
37
38
39/** CCTMXObjectGroup represents the TMX object group.
40@since v0.99.0
41*/
42@interface CCTMXObjectGroup : NSObject
43{
44 NSString *groupName_;
45 CGPoint positionOffset_;
46 NSMutableArray *objects_;
47 NSMutableDictionary *properties_;
48}
49
50/** name of the group */
51@property (nonatomic,readwrite,retain) NSString *groupName;
52/** offset position of child objects */
53@property (nonatomic,readwrite,assign) CGPoint positionOffset;
54/** array of the objects */
55@property (nonatomic,readwrite,retain) NSMutableArray *objects;
56/** list of properties stored in a dictionary */
57@property (nonatomic,readwrite,retain) NSMutableDictionary *properties;
58
59/** return the value for the specific property name */
60-(id) propertyNamed:(NSString *)propertyName;
61
62/** return the dictionary for the specific object name.
63 It will return the 1st object found on the array for the given name.
64 */
65-(NSMutableDictionary*) objectNamed:(NSString *)objectName;
66
67@end