ISMap2DView Class Reference

Inherits from ISMapView : CCGLView
Conforms to UIGestureRecognizerDelegate
Declared in ISMap2DView.h

Overview

Class used to handle 2D map rendering (using Cocos2d).

+ getMap2DViewWithFrame:andMapDelegate:andHandler:

Static constructor.

+ (void)getMap2DViewWithFrame:(CGRect)frame andMapDelegate:(id<ISMapViewDelegate>)mapDelegate andHandler:(GetMap2DViewHandler)handler

Parameters

frame

Wanted rendering frame.

mapDelegate

Delegate used to handle map events.

handler

Map view creation completion handler. - map2DView Created map view.

Declared In

ISMap2DView.h

+ getMap2DViewWithFrame:andMapDelegate:andStartMapId:andHandler:

Static constructor.

+ (void)getMap2DViewWithFrame:(CGRect)frame andMapDelegate:(id<ISMapViewDelegate>)mapDelegate andStartMapId:(NSNumber *)startMapId andHandler:(GetMap2DViewHandler)handler

Parameters

frame

Wanted rendering frame.

mapDelegate

Delegate used to handle map events.

startMapId

Map identifier you want to display at launch.

handler

Map view creation completion handler. - map2DView Created map view.

Declared In

ISMap2DView.h

– getVisibleZones

Method called to get all the current “visible” zones.

- (NSArray *)getVisibleZones

Return Value

All “visible” zones.

Discussion

Warning: If a tile is 1px visible, it will return all its zones.

Declared In

ISMap2DView.h