C# Класс EasyFarm.States.RestState

Behavior for resting our character.
Наследование: BaseState
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Check ( ) : bool

Determines if we should rest up our health or magic.

Exit ( ) : void

Force the player to stand up before attempting anything else.

IsHealthHigh ( int health ) : bool

Given a value, is our health high?

IsHealthLow ( int health ) : bool

Given a value, is our health low?

IsMagicHigh ( int magic ) : bool

Given a value, is our mp high?

IsMagicLow ( int magic ) : bool

Given a value, is our mp low?

RestState ( IMemoryAPI fface ) : System.Collections.Generic
Run ( ) : void

Begin resting our health and magic.

ShouldRestForHealth ( int health, Status status ) : bool

Should we rest up our magic?

ShouldRestForMagic ( int magic, Status status ) : bool

Tells us when we should rest mp.

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

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

Determines if we should rest up our health or magic.
public Check ( ) : bool
Результат bool

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

Force the player to stand up before attempting anything else.
public Exit ( ) : void
Результат void

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

Given a value, is our health high?
public IsHealthHigh ( int health ) : bool
health int
Результат bool

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

Given a value, is our health low?
public IsHealthLow ( int health ) : bool
health int
Результат bool

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

Given a value, is our mp high?
public IsMagicHigh ( int magic ) : bool
magic int
Результат bool

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

Given a value, is our mp low?
public IsMagicLow ( int magic ) : bool
magic int
Результат bool

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

public RestState ( IMemoryAPI fface ) : System.Collections.Generic
fface IMemoryAPI
Результат System.Collections.Generic

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

Begin resting our health and magic.
public Run ( ) : void
Результат void

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

Should we rest up our magic?
public ShouldRestForHealth ( int health, Status status ) : bool
health int
status Status
Результат bool

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

Tells us when we should rest mp.
public ShouldRestForMagic ( int magic, Status status ) : bool
magic int
status Status
Результат bool