How ponchisu/tp-magos-contra-mortifagos works
This is a Java combat simulator for wizard and Death Eater battalions. Its main workflow is to create characters, assemble opposing battalions, and have battalion turns select and cast spells against targets; character states govern spell effects and combat status. The graph also shows the character/spell creation and state layers. Several source excerpts are partial, so links for less-visible behavior are limited to relationships listed in the SOURCE INDEX or described in the README.
Main entry points: BatallaMagosVsMortifagos.java Battle runner · Character.java Character core · Wizard.java Wizard hierarchy · DeathEater.java Death Eater hierarchy
Components 15
Battle orchestration
- Battle runner
src/app/BatallaMagosVsMortifagos.java
Combatants and teams
- Recruitment
src/character/ToRecruit.java - Character core
src/character/Character.java - Wizard battalion
src/wizard/BattalionWizard.java - Death Eater battalion
src/deathEater/BattalionDeathEater.java - Wizard hierarchy
src/wizard/Wizard.java - Death Eater hierarchy
src/deathEater/DeathEater.java - Wizard creators
src/wizardCreator - Death Eater creators
src/deathEaterCreator
Spells and creation
- Spell model
src/spell/Spell.java - Spell effects
src/spell - Spell creators
src/spellCreator
Character states
- State behavior
src/stateCharacter/StateCharacter.java - State variants
src/stateCharacter
Other components
- Wizard player
Connections 20
- Wizard player → Battle runner: starts
src/app/BatallaMagosVsMortifagos.java - Battle runner → Recruitment: recruits
src/app/BatallaMagosVsMortifagos.java - Battle runner → Wizard battalion: runs battle
src/app/BatallaMagosVsMortifagos.java - Battle runner → Death Eater battalion: runs battle
src/app/BatallaMagosVsMortifagos.java - Recruitment → Wizard creators: creates wizards
src/character/ToRecruit.java - Recruitment → Death Eater creators: creates foes
src/character/ToRecruit.java - Wizard creators → Wizard hierarchy: creates subtype
src/wizardCreator/WizardStudentCreator.java - Death Eater creators → Death Eater hierarchy: creates subtype
src/deathEaterCreator/DeathEaterCommanderCreator.java - Wizard battalion → Wizard hierarchy: dispatches attacks
src/wizard/BattalionWizard.java - Death Eater battalion → Death Eater hierarchy: dispatches attacks
src/deathEater/BattalionDeathEater.java - Wizard hierarchy → Character core: inherits
src/wizard/Wizard.java - Death Eater hierarchy → Character core: inherits
src/deathEater/DeathEater.java - Character core → Spell model: validates and stores
src/character/Character.java - Spell effects → Spell model: implements
src/spell/Spell.java - Wizard hierarchy → Spell creators: selects spells
src/wizard/WizardAuror.java - Death Eater hierarchy → Spell creators: selects spells
src/deathEater/DeathEaterCommander.java - Spell creators → Spell effects: constructs spells
src/spellCreator/CrucioCreator.java - Character core → State behavior: delegates state actions
src/character/Character.java - State behavior → State variants: specializes behavior
src/stateCharacter/Idle.java - State variants → Spell model: casts spell
src/stateCharacter/Idle.java