C# Класс Codebreak.Service.World.Game.Entity.AbstractEntity

Наследование: Codebreak.Service.World.Network.MessageDispatcher, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
AbstractEntity ( EntityTypeEnum type, long id ) : System

Описание методов

AbortAction() публичный Метод

public AbortAction ( GameActionTypeEnum actionType ) : void
actionType GameActionTypeEnum
Результат void

AbstractEntity() защищенный Метод

protected AbstractEntity ( EntityTypeEnum type, long id ) : System
type EntityTypeEnum
id long
Результат System

AddEventListener() публичный Метод

public AddEventListener ( IEntityListener listener ) : void
listener IEntityListener
Результат void

CanBeExchanged() публичный Метод

public CanBeExchanged ( ExchangeTypeEnum exchangeType ) : bool
exchangeType ExchangeTypeEnum
Результат bool

CanBeMoved() публичный Метод

public CanBeMoved ( ) : bool
Результат bool

CanGameAction() публичный Метод

public CanGameAction ( GameActionTypeEnum actionType ) : bool
actionType GameActionTypeEnum
Результат bool

ChangeDirection() публичный Метод

public ChangeDirection ( int direction ) : void
direction int
Результат void

DispatchChatMessage() публичный Метод

public DispatchChatMessage ( ChatChannelEnum channel, string message, CharacterEntity whispedCharacter = null ) : bool
channel ChatChannelEnum
message string
whispedCharacter CharacterEntity
Результат bool

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

EmoteUse() публичный Метод

public EmoteUse ( int emoteId, int timeout = 360000 ) : void
emoteId int
timeout int
Результат void

FireEvent() публичный Метод

public FireEvent ( EntityEventType ev, object parameters ) : void
ev EntityEventType
parameters object
Результат void

HasEntityRestriction() публичный Метод

public HasEntityRestriction ( EntityRestrictionEnum restriction ) : bool
restriction EntityRestrictionEnum
Результат bool

HasGameAction() публичный Метод

public HasGameAction ( GameActionTypeEnum actionType ) : bool
actionType GameActionTypeEnum
Результат bool

HasPlayerRestriction() публичный Метод

public HasPlayerRestriction ( PlayerRestrictionEnum restriction ) : bool
restriction PlayerRestrictionEnum
Результат bool

Move() публичный Метод

public Move ( MovementPath path ) : void
path MovementPath
Результат void

RemoveEntityListener() публичный Метод

public RemoveEntityListener ( IEntityListener listener ) : void
listener IEntityListener
Результат void

SerializeAs_GameMapInformations() публичный абстрактный Метод

public abstract SerializeAs_GameMapInformations ( OperatorEnum operation, StringBuilder message ) : void
operation OperatorEnum
message StringBuilder
Результат void

SetChatChannel() публичный Метод

public SetChatChannel ( ChatChannelEnum channelType, Func channel ) : void
channelType ChatChannelEnum
channel Func
Результат void

SetEntityRestriction() публичный Метод

public SetEntityRestriction ( EntityRestrictionEnum restriction, bool value ) : void
restriction EntityRestrictionEnum
value bool
Результат void

SetMap() публичный Метод

public SetMap ( MapInstance map ) : void
map Codebreak.Service.World.Game.Map.MapInstance
Результат void

SetPlayerRestriction() публичный Метод

public SetPlayerRestriction ( PlayerRestrictionEnum restriction, bool value ) : void
restriction PlayerRestrictionEnum
value bool
Результат void

StartAction() публичный Метод

public StartAction ( GameActionTypeEnum actionType ) : void
actionType GameActionTypeEnum
Результат void

StopAction() публичный Метод

public StopAction ( GameActionTypeEnum actionType ) : void
actionType GameActionTypeEnum
Результат void

Teleport() публичный Метод

public Teleport ( int nextMap, int nextCell ) : void
nextMap int
nextCell int
Результат void