C# 클래스 ItemsAI, cs-mini-modbot-simulation

파일 보기 프로젝트 열기: intel-cornellcup/mini-modbot-simulation 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
itemList GameObject[]
itemsUpdateLock System.Object
objectToBounds Bounds>.Dictionary
objectToPosition Vector3>.Dictionary
stopWatch Stopwatch

공개 메소드들

메소드 설명
getReduction ( Node, n ) : float

Given a node object representing a possible waypoint, calculate a reduction for the heuristic if there is an item nearby

updateItems ( ) : void

Initializes/Updates items by retrieving and storing them in a list; also stores a mapping of each item to its position

메소드 상세

getReduction() 공개 정적인 메소드

Given a node object representing a possible waypoint, calculate a reduction for the heuristic if there is an item nearby
public static getReduction ( Node, n ) : float
n Node, a Node representing a possible waypoint
리턴 float

updateItems() 공개 정적인 메소드

Initializes/Updates items by retrieving and storing them in a list; also stores a mapping of each item to its position
public static updateItems ( ) : void
리턴 void

프로퍼티 상세

itemList 공개적으로 정적으로 프로퍼티

public static GameObject[] itemList
리턴 GameObject[]

itemsUpdateLock 공개적으로 정적으로 프로퍼티

public static Object,System itemsUpdateLock
리턴 System.Object

objectToBounds 공개적으로 정적으로 프로퍼티

public static Dictionary objectToBounds
리턴 Bounds>.Dictionary

objectToPosition 공개적으로 정적으로 프로퍼티

public static Dictionary objectToPosition
리턴 Vector3>.Dictionary

stopWatch 공개적으로 정적으로 프로퍼티

public static Stopwatch stopWatch
리턴 Stopwatch