C# 클래스 UnityAI.Core.Planning.Predicate

상속: IComparable
파일 보기 프로젝트 열기: unityai/unityai-core 1 사용 예제들

공개 메소드들

메소드 설명
CalculateHashCode ( string name, bool isNegative, IEnumerable parameters ) : int

Calculates a hashcode for a predicate's parameters

Written separately so that it can be used for calculating hashes on predicat caching

CompareTo ( object obj ) : int
Create ( string name ) : Predicate

Create a Predicate

Create ( string name, bool isNegative ) : Predicate

Create a Predicate

Equals ( object obj ) : bool

Is this predicate Equal to another Predicate?

FindPredicate ( string name, bool isNegative ) : Predicate

Find the Predicate in the Cache

GetHashCode ( ) : int

Calculates the predicate's hashcode

IsComplimentOf ( Predicate predicate ) : bool

Are the Predicates Negatives of Eachother

ToString ( ) : string

String Representation of the Predicate

Validate ( ) : void

Marks the predicate as current

보호된 메소드들

메소드 설명
AddPredicate ( Predicate predicate ) : void

Adds a Predicate to the current cache

CalculateHashCode ( Predicate predicate ) : int

Calculates a hashcode for a predicate

Written separately so that it can be used for calculating hashes on predicat caching

Predicate ( string name ) : System

Construct a Predicate ie At(Monster,Location)

Predicate ( string name, bool isNegative ) : System

Construct a Predicate ie At(Monster,Location)

비공개 메소드들

메소드 설명
InitializeCache ( ) : void

Initialize the Predicate Cache

Predicate ( ) : System

Static Constructor

메소드 상세

AddPredicate() 보호된 정적인 메소드

Adds a Predicate to the current cache
protected static AddPredicate ( Predicate predicate ) : void
predicate Predicate Predicate to add
리턴 void

CalculateHashCode() 보호된 정적인 메소드

Calculates a hashcode for a predicate
Written separately so that it can be used for calculating hashes on predicat caching
protected static CalculateHashCode ( Predicate predicate ) : int
predicate Predicate Predicate to evaluate
리턴 int

CalculateHashCode() 공개 정적인 메소드

Calculates a hashcode for a predicate's parameters
Written separately so that it can be used for calculating hashes on predicat caching
public static CalculateHashCode ( string name, bool isNegative, IEnumerable parameters ) : int
name string Predicate name
isNegative bool Is the predicate negative?
parameters IEnumerable Predicate parameters
리턴 int

CompareTo() 공개 메소드

public CompareTo ( object obj ) : int
obj object
리턴 int

Create() 공개 정적인 메소드

Create a Predicate
public static Create ( string name ) : Predicate
name string Name of Predicate
리턴 Predicate

Create() 공개 정적인 메소드

Create a Predicate
public static Create ( string name, bool isNegative ) : Predicate
name string Name of Predicate
isNegative bool Is Negative?
리턴 Predicate

Equals() 공개 메소드

Is this predicate Equal to another Predicate?
public Equals ( object obj ) : bool
obj object
리턴 bool

FindPredicate() 공개 정적인 메소드

Find the Predicate in the Cache
public static FindPredicate ( string name, bool isNegative ) : Predicate
name string Name of the Predicate
isNegative bool Is Negated
리턴 Predicate

GetHashCode() 공개 메소드

Calculates the predicate's hashcode
public GetHashCode ( ) : int
리턴 int

IsComplimentOf() 공개 메소드

Are the Predicates Negatives of Eachother
public IsComplimentOf ( Predicate predicate ) : bool
predicate Predicate Predicate to Compare
리턴 bool

Predicate() 보호된 메소드

Construct a Predicate ie At(Monster,Location)
protected Predicate ( string name ) : System
name string Name of the Predicate
리턴 System

Predicate() 보호된 메소드

Construct a Predicate ie At(Monster,Location)
protected Predicate ( string name, bool isNegative ) : System
name string Name of the Predicate
isNegative bool Is Negated?
리턴 System

ToString() 공개 메소드

String Representation of the Predicate
public ToString ( ) : string
리턴 string

Validate() 공개 메소드

Marks the predicate as current
public Validate ( ) : void
리턴 void