Commit Graph

84 Commits

Author SHA1 Message Date
Major- 9e20ecfe39 Fix 377 FlashTabInterfaceMessageEncoder 2016-02-13 16:31:42 +00:00
Major- 0f32ec92c4 Fix HintIconMessage.Type 2016-02-13 16:31:42 +00:00
Major- 9a920d95ee Add support for Events defined in Ruby
A slightly complicated and hacky change, because this requires working
around JRuby issue 2359.
2016-02-13 16:31:42 +00:00
Ryley Kimmel dd9edb358d Merge pull request #202 from ryleykimmel/issue179
Rebase HintIconMessage
2016-02-11 11:36:05 -05:00
atomicint 437a664f00 Rebase HintIconMessage
- Split HintIconMessage into two separate classes (PositionHintIconMessage and MobHintIconMessage)
- Split HintIconMessageEncoder into two separate encoders (PositionHintIconMessageEncoder and MobHintIconMessageEncoder)

This resolves #179

Add PositionHintIconMessage#reset

Fix parse errors introduced in e799577
This also resolves #181

Order enumerators by value
Clean up PositionHintIconHintMessageEncoder for 377/317
2016-02-11 11:35:20 -05:00
Major- 774e7f9fef Fix #136
This also fixes a related issue where changes to the region were not
being sent on login.
2016-02-11 16:12:52 +00:00
Major- 4b744e5e86 Cleanup object-related code 2016-02-11 15:14:42 +00:00
Major- d6ac9eeeaa Remove message filtering 2016-02-11 13:07:02 +00:00
Major- c474908163 Log exception after failing to bind to HTTP 2016-02-11 12:57:12 +00:00
Major- f49bb8c023 Cleanup Player code 2016-02-11 12:57:05 +00:00
Major- 7a4392fe74 Add SetWidgetModelMessage 2016-02-10 19:45:32 +00:00
Major- d10eb1267f Improve GroupedRegionUpdateMessageEncoder code 2016-02-10 19:38:25 +00:00
Major- a880127c5f Improve internal Mob code 2016-02-10 19:32:32 +00:00
Gary Tierney bea2e61b27 Add a heuristic using euclidean distance for cost 2016-02-09 23:41:15 +00:00
Gary Tierney 1ef364beb8 Fix missing direction in a* traversable call 2016-02-09 23:39:17 +00:00
Major 4526797095 Merge pull request #180 from ryleykimmel/issue142
Queue npcs before unregistering
2016-02-09 21:13:18 +00:00
atomicint 56ff74e844 Use ArrayDeque, concurrency not important 2016-02-09 13:48:10 -05:00
atomicint c4874acd3c Queue npcs before unregistering, increase maximum messages 2016-02-09 13:32:07 -05:00
Major b99b20fbb4 Merge pull request #171 from ryleykimmel/consistent-tests
Make test class and method names consistent
2016-02-09 16:10:43 +00:00
Major 3e08a62672 Merge pull request #167 from ryleykimmel/issue165
Fix String attribute encoding delimiter
2016-02-09 16:09:12 +00:00
atomicint 38486f9e3e Add unit test for Attribute#encode
Fix typo in Attribute unit test

Ensure test method names are consistent with others in Apollo

More clear tests
2016-02-09 11:06:21 -05:00
atomicint d2b54bde4d Made test class names consistent with other tests
Make test classes final

Ensure all test method names are consistent
2016-02-09 10:21:34 -05:00
atomicint 0c10acafdd Fix class cast exception when creating int attributes 2016-02-07 14:41:22 -05:00
atomicint 6c2edb8efd Add forLong attribute definition 2016-02-07 14:40:47 -05:00
atomicint d50509001a Fix String attribute encoding delimiter 2016-02-07 03:49:19 -05:00
Major 02a40c39f8 Merge pull request #159 from ryleykimmel/issue153
Fix issue #153
2016-02-05 17:42:55 +00:00
atomicint 0bac265a06 Fix issue #153 2016-02-05 12:35:16 -05:00
atomicint 2e9a7ddaaf Fix issue #142
Add unit test for MobRepository#remove(null)

Add explicit null check

Remove empty line, change useless exception message
2016-02-05 12:23:13 -05:00
atomicint 86ed50da12 Resolves issue #155, resolves issue #154, resolves issue #107 2016-02-03 18:21:04 -05:00
Gary Tierney a551f0b22c Merge pull request #152 from ryleykimmel/issue150
Add Region#getEntities and Region#getSurrounding for issue #150
2016-02-03 21:37:18 +00:00
atomicint 848a6780e2 Add Region#getEntities and Region#getSurrounding for issue #150
Remove includeSelf param
2016-02-03 14:56:09 -05:00
Major- 12fd037484 Add unit tests for all utility classes 2016-01-31 11:52:28 +00:00
Gary Tierney 05a7838380 Merge pull request #130 from ryleykimmel/issue74
Fixes issue #74
2016-01-25 21:00:49 +00:00
atomicint 088d872f93 Fixes issue #74 2016-01-23 15:52:43 -05:00
Gary Tierney 3351c93eb4 Merge pull request #128 from ryleykimmel/issue84
Fixes issue #84 (Appearance caching)
2016-01-23 17:10:29 +00:00
atomicint 5156e0bc19 Removed inline comments 2016-01-22 15:55:40 -05:00
atomicint cebdb811cb Clean up hasCachedAppearance
- Remove useless inline comment
- Remove blank line after param declaration
- Only call getIndex() once
2016-01-22 15:51:52 -05:00
atomicint c7d1a5a732 Fixes issue #84 2016-01-22 02:01:21 -05:00
atomicint 637a18d155 Fixes issue #98 (also adds unit test for MobRepository) 2016-01-22 01:11:03 -05:00
WizardJesse1 cbc68d331d Fixed Player Already Online
It use to always finalize the player even if it failed with a status
2015-12-29 22:36:05 -05:00
Gary Tierney bd63144d53 Fix actions continuing when equipping 2h swords 2015-12-23 23:04:05 +00:00
Gary Tierney 68db45e9d3 Correct the height levels of steps in a path
Makes sure that the steps in a path sent for a "Player Walk" message are
on the same level as the players current position while being processed
in the walking queue.
2015-12-22 03:56:38 +00:00
Gary Tierney 2ee5a7cf7b Call executor.shutdown() to run tasks 2015-10-03 23:31:29 +01:00
Gary Tierney 9abed472e9 Handle errors thrown by SynchronousDecoder tasks
Check for errors thrown execution of any SynchronousDecoder tasks, and
rethrow any ExecutionExceptions as SynchronousDecoderExceptions.
2015-10-03 23:20:05 +01:00
Gary Tierney 80be2691ca Remove ItemVerificationHandler test to account for #32 2015-09-13 16:06:20 +01:00
Gary Tierney c65d533288 Add tests around ItemOnObjectVerificationHandler
Add various tests around ItemOnObject messages to verify that a valid
object needs to be given as well as a valid item in order for the
message to be passed down the MessageHandlerChain.
2015-09-13 02:20:37 +01:00
Gary Tierney 15f5d4a36e Change @BeforeClass to @Before to prevent tests failing 2015-09-13 01:46:59 +01:00
Gary Tierney 0c074bd123 Add tests around ObjectActionVerificationHandler
Add a test which verifies an ObjectActionMessage is terminated if its
not within the specified distance of the player.

Additionally add a test which verifies that an ObjectActionMessage is
terminated if there is no object with the given id nearby.
2015-09-13 01:42:12 +01:00
Gary Tierney ef398dc098 Add a test around ChatMessageHandler, update imports
Update the previous ItemOnItemVerificationHandler test to use static
imports of PowerMockito and Assert.
2015-09-13 01:25:00 +01:00
Gary Tierney 82801df436 Add a test around the target of ItemOnItemMessage
Check that the message is terminated() if an ItemOnItemMessage
is received with an invalid target item.
2015-09-13 01:17:41 +01:00