Commit Graph
26 Commits
Author SHA1 Message Date
Timmeey86 4cb72c1998 Resolved some of the power-related TODOs 2018-11-29 00:38:53 +01:00
Timmeey86 12ccc10e83 Restored SolarGenerator and adapted to new power system. 2018-11-28 23:56:11 +01:00
Timmeey86 ec631f3499 Changed test naming conventions as requested by Anuke 2018-11-28 23:54:26 +01:00
Timmeey86 2972780bed Initial Efficiency is now zero. Blocks display efficiency. 2018-11-28 13:19:52 +01:00
Timmeey86 cf3d2c3def Fixed handling of item duration 2018-11-28 11:59:58 +01:00
Timmeey86 1f8751054c Tested/fixed delta calculations
Tests now use a fixed delta of 0.5 to make sure calculations work with deltas different from 1.0
2018-11-28 11:04:08 +01:00
Timmeey86 739219c57b Finished first draft of ItemLiquidGenerator through TDD 2018-11-27 22:28:41 +01:00
Timmeey86 f56e1933a6 Fixed occassional crashes of Power Tests and continued TDD 2018-11-27 21:27:35 +01:00
Timmeey86 11e071289b Reorganized power tests ...
... and changed creation of fake tiles so update() implementations have all required dependencies
2018-11-27 08:51:19 +01:00
Timmeey86 a9517096f9 Merged current Anuke master into branch 2018-11-26 23:25:24 +01:00
Timmeey86 fc3f03425e Merge branch 'master' of https://github.com/baltitenger/Mindustry into baltitenger 2018-11-26 23:12:55 +01:00
Timmeey86 cd6880aff4 Merge branch 'master' of https://github.com/baltitenger/Mindustry into baltitenger 2018-11-26 21:59:25 +01:00
Timmeey86 f640494c1f PowerGraph now handles delta
Also power bars are displayed for non-buffered consumers as well
2018-11-26 10:26:49 +01:00
Timmeey86 77b9feb765 More Tests and fixes
- Batteries will now get charged with no consumers
- Fixed stat display of power generators
2018-11-26 09:24:08 +01:00
Timmeey86 99139dfcca Added unit tests for batteries...
...and fixed battery distribution until all tests passed
2018-11-26 08:58:16 +01:00
Timmeey86 560d388df4 Added Tests, fixed detected bugs and updated JUnit 2018-11-22 23:30:49 +01:00
Timmeey86 7683e86d8b Added two unit tests for bounds checking 2018-11-21 23:57:24 +01:00
Timmeey86 920491ddb2 MassDriver now properly displays the power per shot 2018-11-21 23:38:28 +01:00
Timmeey86 761728ac43 Fixed the ConsumePower constructors which got mixed up at some point 2018-11-21 23:04:18 +01:00
Timmeey86 d8ddb9dc82 Merged the three ConsumePower classes into a single one 2018-11-21 22:55:53 +01:00
Timmeey86 405f153439 Reverted/Adapted blocks to new Consume interfaces 2018-11-21 21:54:43 +01:00
Timmeey86 f789a35901 Readded buffered and direct consumers as three classes 2018-11-21 20:07:05 +01:00
Timmeey86 558c89cc30 Finished first unit test (equal power input and output) and fixed bugs detected by it 2018-11-21 00:04:26 +01:00
Timmeey86 222d41c84a Added Test stub 2018-11-20 22:58:13 +01:00
Timmeey86 f561768c67 Handled compiler errors by either resolving them or commenting & adding a TODO 2018-11-20 22:33:36 +01:00
Timmeey86 f5b8d8a60c Fixed compiler errors/typos in PowerGraph 2018-11-19 22:11:11 +01:00