C# Class ItemsAI, cs-mini-modbot-simulation

Exibir arquivo Open project: intel-cornellcup/mini-modbot-simulation Class Usage Examples

Public Properties

Property Type Description
itemList GameObject[]
itemsUpdateLock System.Object
objectToBounds Bounds>.Dictionary
objectToPosition Vector3>.Dictionary
stopWatch Stopwatch

Public Methods

Method Description
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

Method Details

getReduction() public static method

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
return float

updateItems() public static method

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
return void

Property Details

itemList public_oe static_oe property

public static GameObject[] itemList
return GameObject[]

itemsUpdateLock public_oe static_oe property

public static Object,System itemsUpdateLock
return System.Object

objectToBounds public_oe static_oe property

public static Dictionary objectToBounds
return Bounds>.Dictionary

objectToPosition public_oe static_oe property

public static Dictionary objectToPosition
return Vector3>.Dictionary

stopWatch public_oe static_oe property

public static Stopwatch stopWatch
return Stopwatch