C# Класс EmotionalAppraisal.ActiveEmotion

Наследование: IActiveEmotion, ICustomSerialization
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ActiveEmotion ( EmotionDTO emotionDTO, int threshold, int decay ) : System
ActiveEmotion ( IEmotion emotion, float potential, int threshold, int decay, ulong tickStamp ) : System

Creates a new ActiveEmotion

Equals ( object obj ) : bool
GetCause ( AM am ) : IBaseEvent
GetHashCode ( ) : int
GetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
ReforceEmotion ( float potential ) : void

Reforces the intensity of the emotion by a given potential

SetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
ToDto ( AM am ) : EmotionDTO
ToString ( AM am ) : string

Приватные методы

Метод Описание
DecayEmotion ( EmotionalAppraisalAsset parent ) : void

Decays the emotion according to the system's time

SetIntensity ( float value, ulong tickStamp ) : void

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

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

public ActiveEmotion ( EmotionDTO emotionDTO, int threshold, int decay ) : System
emotionDTO EmotionalAppraisal.DTOs.EmotionDTO
threshold int
decay int
Результат System

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

Creates a new ActiveEmotion
public ActiveEmotion ( IEmotion emotion, float potential, int threshold, int decay, ulong tickStamp ) : System
emotion IEmotion the BaseEmotion that is the base for this ActiveEmotion
potential float the potential for the intensity of the emotion
threshold int the threshold for the specific emotion
decay int the decay rate for the specific emotion
tickStamp ulong
Результат System

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

public Equals ( object obj ) : bool
obj object
Результат bool

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

public GetCause ( AM am ) : IBaseEvent
am AutobiographicMemory.AM
Результат IBaseEvent

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

public GetHashCode ( ) : int
Результат int

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

public GetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
dataHolder ISerializationData
context ISerializationContext
Результат void

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

Reforces the intensity of the emotion by a given potential
public ReforceEmotion ( float potential ) : void
potential float the potential for the reinformcement of the emotion's intensity
Результат void

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

public SetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
dataHolder ISerializationData
context ISerializationContext
Результат void

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

public ToDto ( AM am ) : EmotionDTO
am AutobiographicMemory.AM
Результат EmotionalAppraisal.DTOs.EmotionDTO

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

public ToString ( AM am ) : string
am AutobiographicMemory.AM
Результат string