600 Commits

Author SHA1 Message Date
3e8f9340f3
Dont delete events after triggering the event listener. Once they're in the event listeners hands, it's their responsibility to properly clean up the memory. 2020-07-31 15:47:18 +02:00
df0eca1716
C Interface explicit constructors for different events.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 15:01:25 +02:00
b1ecb56f10
Add C Interface for Battle::GetCurrentTurn.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 14:21:46 +02:00
bd7ecb6b33
More work on exceptions.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 14:17:38 +02:00
9c93ca6995
Fixed exception messages being wrong.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 11:23:23 +02:00
a4c4cad59b
Merge the two different libs together into the same library.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 10:51:03 +02:00
5a41208fdb
Further clearer error handling.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 10:45:20 +02:00
b56226076e
Fixed issue where multiple targets would cause the same target to be hit over and over again.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-30 20:15:58 +02:00
b3b9698831
More clearer exception messages. 2020-07-30 20:15:27 +02:00
29013bb6ac
Fix issue with having two different libraries sharing the same CreatureLib Exception C Interface.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-30 20:06:23 +02:00
99a562812d
Fixed issue where initial exception in the C Interface kept being blank.
Some checks failed
continuous-integration/drone/push Build is failing
2020-07-30 18:41:38 +02:00
13c4609cdd
Tweaks for exception handling.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-28 19:37:03 +02:00
e2e706693b
Clearer errors for C Interface.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-28 17:22:43 +02:00
1d03adf0d1
Implements replacement attack when an attack can't be used anymore, adds clearer exception handling.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 18:00:58 +02:00
36f1e5beeb
Further work on better exceptions.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 17:41:11 +02:00
29eb7c603a
More reworks of exceptions. 2020-07-26 17:29:06 +02:00
9ec41fdd2d
Rework how the C Interface shows exceptions
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 17:22:36 +02:00
418d811d18
Rework of C Interface exception handler.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 16:30:00 +02:00
a4bb8864a0
When creating a CreatureParty with a size, don't just reserve the space, but append nullptr as well.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 16:08:41 +02:00
8ba564d4b7
C Interface for getting party from BattleParty.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 15:46:11 +02:00
7ed118e5de
Fixed issue in BattleParty C Interface.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 15:29:16 +02:00
a6ed6d63cc
Add individual C Interface destructors for turn choices.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 11:37:05 +02:00
141f0338bf
Fixed naming in AttackTurnChoice C Interface.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 11:24:31 +02:00
436e68293e
Support for passing a random seed.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 10:16:25 +02:00
e6f84f182a
Add Creature getter for the library.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-25 15:02:11 +02:00
8f921ce89b
Add support for swapping in and out of a party.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-25 14:35:13 +02:00
3f447a3e16
Add C Interface for Creature::GetActiveTalent.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-24 10:16:57 +02:00
a4faa1351b
Mark exported functions as maybe unused. 2020-07-24 10:14:10 +02:00
be82abeece
Change nickname to string from string_view.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-19 12:15:14 +02:00
75810b9d0c
Implements C Interface for SpeciesVariant.GetRandomTalent
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-18 12:20:47 +02:00
4fe0c70635
Implements C Interface for Species.GetRandomGender
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-17 14:43:04 +02:00
ee9e5cd11b
Further path fixing.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-17 13:30:26 +02:00
869a2ade90
Remove invalid command on build.
Some checks failed
continuous-integration/drone/push Build is failing
2020-07-17 13:21:27 +02:00
aa1e60af18
Fix paths
Some checks failed
continuous-integration/drone/push Build is failing
2020-07-17 13:15:08 +02:00
f273c9c90f
Make build also use test build.
Some checks failed
continuous-integration/drone/push Build is failing
2020-07-17 13:12:58 +02:00
367ed7fcbb
Cleanup CMake file. 2020-07-17 13:12:21 +02:00
5032377554
Remove Random passes by pointer.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-12 15:26:00 +02:00
abab1d0f9a
Force colour for style check.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-07 15:44:20 +02:00
2225d32432
Cleanup of C Interface, remove use of operator->, as it will throw when null.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-07 15:43:31 +02:00
c6974b6b5b
Adds getter for Script for ExecutingAttack. Mostly useful for unit tests etc.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-04 18:13:36 +02:00
47515399fe
Supports iterating over BaseLibrary.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-04 17:18:24 +02:00
61bf868583
Update to newer Arbutils.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-04 15:12:12 +02:00
772619db0f
Changed LoadScript to StringView.
Some checks failed
continuous-integration/drone/push Build is failing
2020-06-26 18:23:40 +02:00
48639eeee5
Update to new Arbutils
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-26 17:08:23 +02:00
f50f76e993
Move priority scripthook to more sensible place in turn flow.
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-20 19:51:34 +02:00
b3366f7b58
Script hook for changing priority.
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-20 19:44:41 +02:00
f55ae5a809
Syntax fixes.
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-20 18:53:10 +02:00
14458ec30c
Bring Library class in line with style lines.
Some checks failed
continuous-integration/drone/push Build is failing
2020-06-20 18:50:55 +02:00
add77325a4
Several additional checks to ensure battle does not finish turn when ended.
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-12 16:48:49 +02:00
fd1c6e9a0a
If no side is still alive, mark battle as inconclusive ended.
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-12 16:25:21 +02:00