Commit Graph

62 Commits

Author SHA1 Message Date
4487a2cb16 Merge branch 'master' into develop
Some checks failed
ydeng/islandsurvivalcraft/pipeline/head There was a failure building this commit
2024-07-21 04:17:12 +00:00
21ce300b08 Added Jenkinsfile and updated package naming. 2022-12-04 05:24:43 +00:00
94dbda6ac6 Map is now toggle instead of crafting. 2020-09-09 13:57:08 -05:00
ea4ba47427 Changed island information creation to be async.
Flooder no longer uses it's own interface for flooding.
2020-05-14 15:07:46 -05:00
19552f1a2b Made command system and DFS usage more intuitive. 2020-05-11 12:50:32 -05:00
4f18f25c01 Island highlighting debug now works, albeit, not favorable.
Reworked DFS as well to suit a broader spectrum of needs.

Reworked other classes for easier use.
2020-05-09 21:56:27 -05:00
dd89266b4e Preliminary new unique biome generator. 2020-05-07 11:52:23 -05:00
a5cf40913b Implemented better biome system. 2020-05-06 20:05:20 -05:00
778b334ceb Implemented concept of island origin coords.
Useful for hashing an island potentially.
2020-05-05 16:49:21 -05:00
7e156ff2ea initial commit. 2020-05-05 12:24:31 -05:00
1167efbe4e Large package structure refactoring. 2020-05-04 16:41:46 -05:00
3a86bd1a12 Wrote a world information system and management for them.
Also large amounts of refactoring done.

The tests implement the new changes.

Island map test clears the cache now.
2020-05-04 12:53:09 -05:00
a077ec6c0e Refactoring. 2020-05-03 17:49:48 -05:00
740ca812ae World generation feels more natural now.
Mountain tips after a certain height is stone.

Deep ocean biomes are now actually deeper.

Temperature map no longer calculates in groups of 4.
2020-05-03 16:44:43 -05:00
79edd9bf29 Several changes to chunk generation operation.
Multiple values adjusted.

Pipeline changed.

Changed server start script to not wait for debugger.
2020-05-02 19:22:45 -05:00
486a0f837f Basic terrain shaping added.
World height shader "shades" the primitive island height giving variation to land and sea.

World layer shader "shades" the primitive islands with varying layers dependent on biomes.

Mapper values was changed to perform the more targetted task of generating island locations and masks.

Biome selector now takes a random at call to help with seed consistency (due to threading, this may still be problematic).

Chunk generator implements the new changes.

Tests implement new changes.
2020-05-02 00:06:58 -05:00
a6cebe703b Now generating primitive islands.
Favourable island mapper values.
2020-05-01 18:37:06 -05:00
e4597538b2 Chunk generation now generates sea and island.
Adjusted values for the island mapper.
Island world mapper now takes a seed instead of a random object.
Refactoring of method names.

Reduced cache sizes used by terrain generation.

Reworked height shader to not use it's own noise generator.

Updated tests implementing changes respectively.
2020-04-30 21:42:03 -05:00
1b80c26348 Clear cache after each test. 2020-04-29 21:29:47 -05:00
21e8e52b9c Changed test parameters, added large sized test. 2020-04-29 21:26:22 -05:00
538b1c3cae Changed some multithreaded tests to fail if exception is thrown. 2020-04-29 19:53:02 -05:00
c63298bcaa Fixed tests environments.
Added basic islandworldmapper to test for block value consistency.

UniBiomeGenerator tests now produce new random object with same seed.
2020-04-29 19:40:02 -05:00
5b1bb4288d Biome selector no longer requires random parameter.
Implemented new biome selector changes.
2020-04-29 15:06:14 -05:00
d62bc696a5 Changed a test to use JUnit's timeout annotation. 2020-04-28 23:37:09 -05:00
b2efe76e27 Renamed test to better describe it. 2020-04-28 23:30:07 -05:00
437a3acdcc Added a more scattered test.
This may be a more realistic representation.
2020-04-28 23:22:43 -05:00
8595ab0c4e Biome generator change in way of caching island info.
Biome cache now stores a 4 biome values: current, main, shore, and shallow.
2020-04-28 23:15:29 -05:00
7a2a2d4ca6 Renamed some tests and changed amount tested. 2020-04-28 17:18:36 -05:00
b49f50f728 Increased chunk count to 6000. 2020-04-28 17:13:11 -05:00
61a6bbaa4f Cleaned up cache tests. 2020-04-28 17:12:36 -05:00
ca1e1c0975 Changed import to latest JUnit import. 2020-04-28 16:57:09 -05:00
b30d689183 Reworked thread safe cache solution.
Also performed refactoring.

And added some threaded tests.
2020-04-28 16:53:23 -05:00
7c073cdc6e Preventing flooder from checking same node.
Added another flooder test.
2020-04-27 23:17:54 -05:00
85ec44a4d7 Flood algorithm added and (basic) tests performed. 2020-04-27 21:10:55 -05:00
49f26f7901 Fixed conversion from world to chunk coords.
Added test that catches this case.
2020-04-27 15:14:33 -05:00
26ebf7af33 Fixed test case. 2020-04-27 14:25:10 -05:00
1e8dc8019a Current iteration of work.
Attempted at fixing the coordinate converter again.

Added more applicable tests for them.

Changing to a more stateless design for biome generator.

Refactored correcting package name to fit conventions.
2020-04-27 14:23:57 -05:00
ec27a9bc10 Fixed perfect chunk coordinates in utilities.
Added respective tests to ensure this doesn't break.
2020-04-27 13:44:49 -05:00
39381f07f9 Fixed incorrect method call.
Added tests to make sure that this doesn't happen.
2020-04-27 13:21:04 -05:00
4f411c42fb Added conversion from world coordinates to utilities.
Respective tests also added.
2020-04-26 20:56:10 -05:00
f20515fd45 Reworked cache, this time with less hashmap accesses. 2020-04-25 22:32:25 -05:00
1e0d63e562 Added a magnitiude addition helper function. 2020-04-25 17:54:40 -05:00
629660c8fc Revamped caching again, this time, without sorting.
Implemented cache changes.
2020-04-25 17:54:25 -05:00
91644f9ba0 New cache system.
Caching itself is tested.

Implemented into classes (untested).
2020-04-25 12:06:41 -05:00
ffc01f0ddf Minor doc and method name changes.
Respective tests updated.
2020-04-24 15:15:24 -05:00
be19db1f9b Separated node class from DFS class. 2020-04-23 23:07:49 -05:00
e50a983b25 Added simple caching system. 2020-04-23 20:15:45 -05:00
4ed9d4d272 Tested DFS direction assisted search. 2020-04-22 19:41:25 -05:00
ed48e164b6 Cleaned up DFS testing.
Changed all maps to files.
2020-04-22 18:49:06 -05:00
c3998150f9 Added more tests.
Added a very large map for tests.
Added testing for DFS limiter.
2020-04-22 18:41:33 -05:00