C# Класс ItemsAI, cs-mini-modbot-simulation

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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