Options
All
  • Public
  • Public/Protected
  • All
Menu

The main class responsible for high-level interaction with engine. Single instance of this object encapsulates single engine configuration. The simplest way to obtain instance is to call createEngine function.

Hierarchy

  • WyrmEngine

Index

Constructors

constructor

Properties

Private characterCreator

characterCreator: CharacterCreator = new CharacterCreator(this.engineConfig)

Private engineConfig

engineConfig: IEngineConfig

Engine internal configuration

Methods

createEncounter

  • Creates encounter between given two teams.

    Parameters

    • teamA: ICharacter[]

      array with all characters belongs to team A

    • teamB: ICharacter[]

      array with all characters belongs to team B

    • Optional logMessageCallback: undefined | function

      invoked when encounter message is emitted

    Returns Encounter

    encouter object to interact with

getCharacterCreator

getConfig

Private toCharacter

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc