Inherits from NSObject
Conforms to IMMOItem
Declared in MMOItem.h
MMOItem.m

Overview

An MMOItem represents an active non-player entity inside an MMORoom.

MMOItems can be used to represent bonuses, triggers, bullets, etc, or any other non-player entity that will be handled using the MMORoom’s rules of visibility.

This means that whenever one or more MMOItems fall within the Area of Interest (AoI) of a user, their presence will be notified to that user by means of the [ISFSEvents onProximityListUpdate] event.

MMOItems are identified by a unique ID and can have one or more MMOItem Variables associated to store custom data.

NOTE: MMOItems can be created in a server side Extension only; client side creation is not allowed.

Instance Methods

containsVariable:

Checks whether an MMOItemVariable exists with the provided name

- (BOOL)containsVariable:(NSString *)varName

Parameters

varName

the variable name

Return Value

YES if the variable exists

Discussion

Checks whether an MMOItemVariable exists with the provided name

See Also

Declared In

IMMOItem.h

getVariable:

Get an MMOItemVariable via its name

- (id<IMMOItemVariable>)getVariable:(NSString *)varName

Parameters

varName

the variable name

Return Value

the MMOItemVariable, nil if no variable with such name exist

Discussion

Get an MMOItemVariable via its name

See Also

Declared In

IMMOItem.h

getVariables

Get all MMOItemVariables associated with this MMOItem

- (NSArray *)getVariables

Return Value

all MMOItem variables

Discussion

Get all MMOItemVariables associated with this MMOItem

See Also

Declared In

IMMOItem.h