Conforms to NSObject
Declared in IMMOItem.h

Overview

The IMMOItem protocol defines all the methods and properties that an object representing a SmartFoxServer MMOItem entity exposes.

In the SmartFoxServer 2X client API the protocol is implemented by the MMOItem class. Read the class description for additional informations.

See MMOItem, MMORoom, Vec3D

Tasks

Properties

aoiEntryPoint

The MMOItem entry point, it represents the coordinates in which the item appeared in the player’s AoI (Area Of Interest

@property (nonatomic, strong) Vec3D *aoiEntryPoint

Discussion

The MMOItem entry point, it represents the coordinates in which the item appeared in the player’s AoI (Area Of Interest

See Also

Declared In

IMMOItem.h

id

The MMOItem unique id

@property (readonly, nonatomic) NSInteger id

Discussion

The MMOItem unique id

Declared In

IMMOItem.h

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