GameWorld Class

Fight Game AI Demo

GameWorld Class
Game world Class
Inheritance Hierarchy
SystemObject  FightGameAIDemoGameWorld

Namespace: FightGameAIDemo
Assembly: FightGameAIDemo (in FightGameAIDemo.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class GameWorld : IGameWorld

The GameWorld type exposes the following members.

Constructors
  NameDescription
Public methodGameWorld
Initializes a new instance of the GameWorld class
Top
Properties
  NameDescription
Public propertyClose
Gets or sets a value indicating whether this GameWorld is close.
Public propertyCrouched
Gets or sets a value indicating whether this GameWorld is crouched.
Public propertyDistance
Gets or sets the distance.
Public propertyFar
Gets or sets a value indicating whether this GameWorld is far.
Public propertyListEventsAlgorithm
Gets or sets the list events algorithm.
Public propertyListOfEvents
Gets or sets the list of events.
Public propertyMedium
Gets or sets a value indicating whether this GameWorld is medium.
Public propertyPopulation_size
Gets or sets the population_size.
Top
Methods
  NameDescription
Public methodHasAIDied
Determines whether [has ai died].
Public methodHasNonAIDied
Determines whether [has non ai died].
Public methodnextRound
Move onto the nexts round.
Public methodRunFight
Runs the fight.
Public methodSetUp
Set up fighters for fight.
Public methodtriggerEvolution
Triggers the evolution.
Public methodwAttack
handles the attacks in world calss.
Top
Fields
  NameDescription
Public fieldAiFighter
The ai fighter
Private fieldclose
The close distance setting
Private fieldcrouched
The crouched position setting
Private fielddistance
The distance between fighters
Private fieldfar
The far distance setting
Private fieldfighterCounter
The fighter counter
Private fieldfitness
The fitness
Private fieldgp
Private fieldlc
the loop counter to prevent infinet loop during fight
Private fieldlistEventsAlgorithm
The of list events for algorithm
Private fieldlistOfEvents
The list of events for the fight
Private fieldmedium
The medium distance setting
Public fieldNoAiFighter
The no ai fighter
Public fieldpopulation_size
The population_size
Private fieldroundNum
The round number
Private fieldtotal_Damage
The total_ damage
Private fieldtreeCounter
The tree counter
Top
See Also