ISGenericRenderer Class Reference

Inherits from NSObject
Conforms to ISRenderer
Declared in ISGenericRenderer.h

Overview

Class used to represent the generic map renderer we will use.

  rtos

RTO HashMap.

@property (nonatomic, retain) NSMutableDictionary *rtos

Declared In

ISGenericRenderer.h

  rtosLock

The RTO NSArray mutex.

@property (nonatomic, retain) NSLock *rtosLock

Declared In

ISGenericRenderer.h

  hasMoved

Boolean used to know if we moved.

@property (nonatomic, readwrite) Boolean hasMoved

Declared In

ISGenericRenderer.h

  layer

Map view layer.

@property (weak) CCLayer *layer

Declared In

ISGenericRenderer.h

– initWithRTOClass:andPriority:

Main constructor.

- (instancetype)initWithRTOClass:(Class)rtoClass andPriority:(int)priority

Parameters

rtoClass

Related RTO class.

priority

Renderer priority.

Declared In

ISGenericRenderer.h

– getZoneDrawPositionWithZone:andRTO:andRatio:andOffset:

Method used to get the zone rendering position for a given RTO.

- (CGPoint)getZoneDrawPositionWithZone:(ISZone *)zone andRTO:(id<ISRTO>)rto andRatio:(float)ratio andOffset:(CGPoint)offset

Parameters

zone

Zone to draw in.

rto

RTO to draw.

ratio

Current rendering ratio.

offset

Current rendering offset.

Declared In

ISGenericRenderer.h

– removeRTOWithId:

Method called to remove a RTO with its identifier.

- (void)removeRTOWithId:(int)rtoId

Parameters

rtoId

RTO identifier to remove.

Declared In

ISGenericRenderer.h