C# Class Codebreak.Service.World.Game.Entity.AbstractEntity

Inheritance: Codebreak.Service.World.Network.MessageDispatcher, IDisposable
Show file Open project: hussein-aitlahcen/codebreak Class Usage Examples

Public Methods

Method Description
AbortAction ( GameActionTypeEnum actionType ) : void

AddEventListener ( IEntityListener listener ) : void

CanBeExchanged ( ExchangeTypeEnum exchangeType ) : bool

CanBeMoved ( ) : bool

CanGameAction ( GameActionTypeEnum actionType ) : bool

ChangeDirection ( int direction ) : void

DispatchChatMessage ( ChatChannelEnum channel, string message, CharacterEntity whispedCharacter = null ) : bool

Dispose ( ) : void

EmoteUse ( int emoteId, int timeout = 360000 ) : void

FireEvent ( EntityEventType ev, object parameters ) : void

HasEntityRestriction ( EntityRestrictionEnum restriction ) : bool

HasGameAction ( GameActionTypeEnum actionType ) : bool

HasPlayerRestriction ( PlayerRestrictionEnum restriction ) : bool

Move ( MovementPath path ) : void

RemoveEntityListener ( IEntityListener listener ) : void

SerializeAs_GameMapInformations ( OperatorEnum operation, StringBuilder message ) : void

SetChatChannel ( ChatChannelEnum channelType, Func channel ) : void

SetEntityRestriction ( EntityRestrictionEnum restriction, bool value ) : void

SetMap ( MapInstance map ) : void

SetPlayerRestriction ( PlayerRestrictionEnum restriction, bool value ) : void

StartAction ( GameActionTypeEnum actionType ) : void

StopAction ( GameActionTypeEnum actionType ) : void

Teleport ( int nextMap, int nextCell ) : void

Protected Methods

Method Description
AbstractEntity ( EntityTypeEnum type, long id ) : System

Method Details

AbortAction() public method

public AbortAction ( GameActionTypeEnum actionType ) : void
actionType GameActionTypeEnum
return void

AbstractEntity() protected method

protected AbstractEntity ( EntityTypeEnum type, long id ) : System
type EntityTypeEnum
id long
return System

AddEventListener() public method

public AddEventListener ( IEntityListener listener ) : void
listener IEntityListener
return void

CanBeExchanged() public method

public CanBeExchanged ( ExchangeTypeEnum exchangeType ) : bool
exchangeType ExchangeTypeEnum
return bool

CanBeMoved() public method

public CanBeMoved ( ) : bool
return bool

CanGameAction() public method

public CanGameAction ( GameActionTypeEnum actionType ) : bool
actionType GameActionTypeEnum
return bool

ChangeDirection() public method

public ChangeDirection ( int direction ) : void
direction int
return void

DispatchChatMessage() public method

public DispatchChatMessage ( ChatChannelEnum channel, string message, CharacterEntity whispedCharacter = null ) : bool
channel ChatChannelEnum
message string
whispedCharacter CharacterEntity
return bool

Dispose() public method

public Dispose ( ) : void
return void

EmoteUse() public method

public EmoteUse ( int emoteId, int timeout = 360000 ) : void
emoteId int
timeout int
return void

FireEvent() public method

public FireEvent ( EntityEventType ev, object parameters ) : void
ev EntityEventType
parameters object
return void

HasEntityRestriction() public method

public HasEntityRestriction ( EntityRestrictionEnum restriction ) : bool
restriction EntityRestrictionEnum
return bool

HasGameAction() public method

public HasGameAction ( GameActionTypeEnum actionType ) : bool
actionType GameActionTypeEnum
return bool

HasPlayerRestriction() public method

public HasPlayerRestriction ( PlayerRestrictionEnum restriction ) : bool
restriction PlayerRestrictionEnum
return bool

Move() public method

public Move ( MovementPath path ) : void
path MovementPath
return void

RemoveEntityListener() public method

public RemoveEntityListener ( IEntityListener listener ) : void
listener IEntityListener
return void

SerializeAs_GameMapInformations() public abstract method

public abstract SerializeAs_GameMapInformations ( OperatorEnum operation, StringBuilder message ) : void
operation OperatorEnum
message StringBuilder
return void

SetChatChannel() public method

public SetChatChannel ( ChatChannelEnum channelType, Func channel ) : void
channelType ChatChannelEnum
channel Func
return void

SetEntityRestriction() public method

public SetEntityRestriction ( EntityRestrictionEnum restriction, bool value ) : void
restriction EntityRestrictionEnum
value bool
return void

SetMap() public method

public SetMap ( MapInstance map ) : void
map Codebreak.Service.World.Game.Map.MapInstance
return void

SetPlayerRestriction() public method

public SetPlayerRestriction ( PlayerRestrictionEnum restriction, bool value ) : void
restriction PlayerRestrictionEnum
value bool
return void

StartAction() public method

public StartAction ( GameActionTypeEnum actionType ) : void
actionType GameActionTypeEnum
return void

StopAction() public method

public StopAction ( GameActionTypeEnum actionType ) : void
actionType GameActionTypeEnum
return void

Teleport() public method

public Teleport ( int nextMap, int nextCell ) : void
nextMap int
nextCell int
return void