Skip to content

Battle module

Marcin Gomulak edited this page Jun 19, 2019 · 1 revision

Summary

This page contains various information about the battle module used in OpenVIII.

Details

  • Class-Name: module_battle_Debug.cs
  • Index: Memory.MODULE_BATTLE_DEBUG

Ingame-Controls

  • 1 - increase debug variable by 1

  • 2 - decrease debug variable by 2

  • 3 - reload encounter

  • 4 - increment and reset encounter

  • 5 - Switch between CameraAnimation and FreeCam

         **Freecam**
    
  • WASD/Left thumbstick - movement

  • Mouse/ Right thumbstick - look

         **CameraAnimation**
    
  • NO INPUT

Inner modules and initialization

Based on inner modules:

  1. BATTLEMODULE_INIT
  2. BATTLEMODULE_READDATA
  3. BATTLEMODULE_DRAWGEOMETRY
  4. BATTLEMODULE_ACTIVE

BATTLEMODULE_INIT

Is the first starting module when changing battle and after resetting it's state. It initiates InitBattle method that gets the encounter data for selected Memory.battle_encounter. It creates the shaders and configures the renderer. After finish increments inner module index to BATTLEMODULE_READDATA

BATTLEMODULE_READDATA

//TODO

BATTLEMODULE_DRAWGEOMETRY

//TODO

BATTLEMODULE_ACTIVE

Currently idle and unused class

Rendering

Rendering starts AFTER loading all necessary data (which are: stage, enemies, characters) // TODO