Commit Graph

1457 Commits

Author SHA1 Message Date
Collin Smith
7525e288ea Allow instantiation of EndOfInput outside of com.riiablo.io 2021-09-16 12:27:07 -07:00
Collin Smith
474ea5b44b Integrated arg name into InstallationFinder searching methods
Integrated arg name into InstallationFinder searching methods
Refactored tools to use InstallationFinder#defaultHomeDir
Added java.lang.Exception to throws clause of Tool#handleCliOptions
Uncaught exceptions thrown by Tool#handleCliOptions will be fatal
2021-09-16 12:25:34 -07:00
Collin Smith
c5c98ce48c Integrated InstallationFinder folder searching directly into InstallationFinder 2021-09-16 11:54:30 -07:00
Collin Smith
69bfbfbf4f Parameterized RiiabloTest dirs
Added D2_TEST environment variable and getTestDirs for InstallationFinder
d2 home and d2 test home set by InstallationFinder for RiiabloTest
2021-09-15 23:07:21 -07:00
Collin Smith
e342870bd9 Extended capabilities of RiiabloTest
Added #testAsset(String) to resolve file from test home
Added #toByteArray(short[]) to simplify ubyte array creation
2021-09-15 14:01:58 -07:00
Collin Smith
0e5fc03f31 Created package-info.java for mpq_bytebuf 2021-08-29 23:46:10 -07:00
Collin Smith
c744ac149b Changed visibility of methods for easier testing 2021-08-29 23:27:48 -07:00
Collin Smith
82917f747c Created ImplUtils containing developmental functions 2021-08-20 17:51:23 -07:00
Collin Smith
a8403abd19 Expose DS1 constants to public visibility 2021-08-08 00:34:18 -07:00
Collin Smith
d067fea4de Implemented clearing array cells for primitive array types 2021-08-08 00:25:33 -07:00
Collin Smith
fa45d5d4b7 Implemented subtile flags merging from tile layers
Implemented subtile flags merging from tile layers
Fixed algebra calculating Chunk#numTiles
Hacked MapGenerator to function with test DS1
2021-08-07 00:29:22 -07:00
Collin Smith
db51859edc Fixed bug where chance initialized as 0 would select null tile 2021-08-06 17:08:07 -07:00
Collin Smith
3bbcd2c086 Changes size of Chunk#flags to subtiles size
Changes size of Chunk#flags to subtiles size
Chunk#reset() now clears Chunk#tiles[][] entries
2021-08-04 14:08:54 -07:00
Collin Smith
466d94b6fb Created Chunk#flags to store aggregated flags of chunk layers 2021-08-04 00:06:58 -07:00
Collin Smith
d3c47b5781 Reorganized code 2021-08-04 00:03:51 -07:00
Collin Smith
c3e10ed506 Restructured code to improve readability 2021-08-03 23:58:49 -07:00
Collin Smith
6f44f10d4f Removed ChunkGrid note 2021-08-03 23:55:29 -07:00
Collin Smith
6a73e59369 Renamed DS1.Object to DS1.Ds1Object to fix annoying IDEA parse bug 2021-08-03 23:50:10 -07:00
Collin Smith
8656d50dfa Refined impls
Restricted scoping of DS1Reader constants specific to class impl to reduce confusion
Restructured DS1Reader a bit
Added support for DS1#layers bitsum of active layers
Implemented multiple layers into Chunk#tiles via Chunk#layers
Changed MapDebugger to y-up be north (more logical with level layouts and ds1 coordinates scheme)
2021-08-03 23:40:53 -07:00
collinsmith
508f08d8ef com.riiablo.map2 work from camping, including adding javax.annotation api depedency 2021-07-30 23:37:39 -07:00
Collin Smith
9db87b166e Tests for random seed serialization 2021-07-24 00:57:54 -07:00
Collin Smith
25cf027454 Added Map and MapGenerator implementations 2021-07-24 00:55:52 -07:00
Collin Smith
66109d0cee Assignment of Chunk#tiles from pool 2021-07-24 00:55:27 -07:00
Collin Smith
4421bdf78f Created Prefab class to be used to track prefab tile configurations 2021-07-24 00:49:27 -07:00
Collin Smith
b10a059840 Created IndexDefs containing pre-defined special tile indexes 2021-07-24 00:48:12 -07:00
Collin Smith
d192dd97e1 Created TileGenerator to produce random variations of tiles using specs 2021-07-24 00:47:17 -07:00
Collin Smith
f18c864df0 Added DebugMode#PREFAB to draw prefab rects (unimplemented) 2021-07-24 00:45:21 -07:00
Collin Smith
e56ced7d2b Pseudo-random number generator impl with serializable seed 2021-07-24 00:41:45 -07:00
Collin Smith
41a8f42a33 Fill obtained arrays with null to allow GC 2021-07-23 19:03:17 -07:00
Collin Smith
20b7908efb Added test case for ds1 containing groups 2021-07-23 01:47:10 -07:00
Collin Smith
8806b86faa Mockup of Zone/Chunk structures
Mockup of Zone/Chunk structures
Expanded BBox functions to include setter function
2021-07-23 01:46:42 -07:00
Collin Smith
0afb1e9514 Adjusted ArrayPool and BucketPool APIs 2021-07-23 01:43:00 -07:00
Collin Smith
5bc47dbf98 Impl of pooling for arrays and buckets of arrays of sizes 2021-07-21 15:08:46 -07:00
Collin Smith
16670d6e89 Refactored names for TileRenderer methods, removed deprecated methods 2021-07-20 23:24:54 -07:00
Collin Smith
8f13d9bac0 Created Ds1Info and display (no rendering) 2021-07-18 21:06:11 -07:00
Collin Smith
ce5166753b Second iteration of DT1 codec
Separated responsibilities of DT1 into DT1Reader and TileRenderer
DT1 now depends on calculated BBox to position textures
Integrated new DT1 codec into MPQViewer (including Dt1Info)
Fixed numerous issues with MPQViewer UI value labels
2021-07-18 12:07:30 -07:00
Collin Smith
9241e3a898 Upgraded riiablo:core tests from JUnit 4 -> JUnit 5
Upgraded riiablo:core tests from JUnit 4 -> JUnit 5
Changed source and target compatibility for riiablo:core to Java 8
Adjusted project style to organize JUnit imports more cleanly
2021-07-14 22:00:59 -07:00
Collin Smith
33e2633f96 Additional exclusion for :table:annotation-processor dependency (#135)
Fix for bf609ac2f0 not excluding during test sources compilation
2021-07-10 01:03:12 -07:00
Collin Smith
0eea5e2793 Migrated libgdx 1.9.13 -> 1.9.14
Migrated libgdx 1.9.13 -> 1.9.14
Removed gdx-jnigen dependency (waterfalled from within gdx-video correctly now)
Separated gdx-controllers version 1.9.14 -> 2.2.0
Changed HeadlessApplicationConfiguration#renderInterval to #updatedPerSecond
2021-05-28 15:30:15 -07:00
Collin Smith
bf609ac2f0 Disable :table:annotation-processor dependency (#135)
Disable :table:annotation-processor dependency
Exclude com.riiablo.table.*.** from compile to improve performance
2021-05-28 12:47:54 -07:00
Collin Smith
e550bdab55 Fixed CvarManager cleanup
Fixed an issue where removing a Cvar from a CvarManager was not removing its state listener
2021-04-25 01:47:57 -07:00
Collin Smith
651e2c9210 Changed filtering for palette render textures to Nearest
This is the default, protecting against LibGDX API changes
2021-01-24 16:37:03 -08:00
Collin Smith
7a2ed359c8 Changed glClearColor to set on each draw call
Changed glClearColor to set on each draw call
Changed glClearColor color definition to global const
2021-01-19 16:27:46 -08:00
Collin Smith
438f26d468 Upgraded LibGDX from 1.9.11 -> 1.9.13
API change scrolled(int) -> scrolled(float,float)
Changed switches to if/else, asserting non-zero amounts
API change gdx.utils.Pool removed prefill argument -- adjusted code
Note: DS1Viewer remains broken, API updated anyways
2021-01-13 21:29:13 -08:00
Collin Smith
97ee523541 Created BinGenerator and tests 2021-01-10 18:35:31 -08:00
Collin Smith
f4705e5775 Added package-level documentation for excel packages 2021-01-10 18:34:08 -08:00
Collin Smith
48de8bf54e Ported some additional schemas 2021-01-09 20:08:30 -08:00
Collin Smith
e7791c1742 Fixed incorrect import 2021-01-09 20:05:53 -08:00
Collin Smith
ff301e0e63 Created schemas for remaining tables
Unimplementable code commented out
Need to fix bug: overridden primary key being used as primary key (ModeEntry)
2021-01-09 19:48:37 -08:00
Collin Smith
1621249f10 Added suppression for unused warning 2021-01-09 19:12:17 -08:00