Commit Graph
48 Commits
Author SHA1 Message Date
Obique PSWG 0c232c3210 Fixed adding travel ticket to inventory so inventory updates 2016-01-10 00:04:19 -06:00
Obique PSWG ccad047e4f Moved registerForIntent() into constructors of all services 2015-11-01 09:41:07 -06:00
Mads Boddum 1e68cb928e Fixed an issue where shuttles would have visible levels and health 2015-10-29 15:15:34 +01:00
Mads Boddum 4dd101f902 Added a standard additional ticket cost. Algorithm is currently missing. 2015-10-25 09:43:22 +01:00
Mads Boddum 6ce9d56911 Fixed an issue with some terrains containing non-functional shuttles 2015-10-25 09:23:16 +01:00
Mads Boddum b11704ac73 Implemented a configurable factor which impacts travel ticket prices 2015-10-25 09:22:11 +01:00
Mads Boddum 197f1c41ab The land delay for shuttles is now 17 seconds instead of only 10 2015-10-11 01:17:38 +02:00
Mads Boddum 58705a2b2f getDestinationPoint() in TravelService now uses for-each instead of an Iterator-based while-loop 2015-10-11 01:01:16 +02:00
Mads Boddum d07e5832c3 Refactored loadAllowedRoutesAndPrices() in TravelService 2015-10-08 16:13:12 +02:00
Mads Boddum 8ae550ca9b Split handleTicketPurchase() in TravelService up into smaller methods 2015-10-08 16:08:20 +02:00
Mads Boddum 51277c080a Refactored TravelService to use RelationalServerFactory 2015-10-08 09:37:58 +02:00
Mads Boddum 2f49574fd5 Removed the awareness bool when calling createObject() in TravelService 2015-10-08 08:59:08 +02:00
Mads Boddum e8b4f6d664 The shuttle behaviour ExecutorService is now instantiated in initialize() instead of in TravelService's constructor 2015-10-07 22:32:16 +02:00
Mads Boddum c2d32e7e7b Renamed pointsForPlanet() in TravelService to getPointsForPlanet() 2015-10-07 22:30:30 +02:00
Mads Boddum cd08534fc1 Renamed distanceFromPoint in TravelService to getDistanceFromPoint 2015-10-07 22:27:21 +02:00
Mads Boddum d1d10d3451 Renamed destinationPoint() in TravelService to getDestinationPoint() 2015-10-07 22:26:34 +02:00
Mads Boddum 35d85ab1dc Made two checks in TravelService a one-liner 2015-10-07 22:25:43 +02:00
Mads Boddum 6e70857f71 Added missing license header to TravelService 2015-10-07 22:21:17 +02:00
Mads Boddum e47d0dc21f Renamed ticketCanBeUsedAtNearestPoint() in TravelService to isTicketUsable() 2015-10-07 20:59:09 +02:00
Mads Boddum 4733470ba9 Renamed objectHasTicketAttributes() in TravelService to isTicket() 2015-10-07 20:57:48 +02:00
Mads Boddum 009e616c8a Fixed an issue where a travel ticket would be free if the amount of credits in your bank exceeded the cost of the ticket 2015-10-07 20:50:59 +02:00
Mads Boddum 03432ba746 Fixed incorrect pricing on tickets for certain travel routes 2015-10-07 20:35:49 +02:00
Mads Boddum 5fc7876730 Refactored TravelService slightly to make the code simpler 2015-10-05 17:28:54 +02:00
Mads Boddum 659983372b Merge branch 'CORE-137-travel' of https://bitbucket.org/M4SS/holocore into CORE-137-travel
Conflicts:
	src/resources/TravelPoint.java
	src/services/galaxy/TravelService.java
2015-10-05 15:50:05 +02:00
Mads Boddum 26c1a5d7d6 Refactored TravelPoint and TravelService to reduce general code complexity 2015-10-05 15:47:51 +02:00
Mads Boddum 1f6dd84a72 Renamed the static fields in TravelService to make them more readable 2015-10-05 10:23:49 +02:00
Mads Boddum 44b60c029c Removed an old comment from TravelService 2015-10-05 10:22:34 +02:00
Mads Boddum a071a67314 Renamed totalTicketPrice() in TravelPoint to getTotalTicketPrice() 2015-10-05 10:21:05 +02:00
Mads Boddum b0477e32c5 Renamed suiFormat() in TravelPoint to getSuiFormat() 2015-10-05 10:19:28 +02:00
Mads Boddum b77a7bdaa6 When purchasing a travel ticket, credits are now drained from your cash pool if the bank pool has insufficient funds 2015-10-04 16:32:32 +02:00
Mads Boddum 9a64c80473 Fixed some issues where the incorrect messages were sent to a player wanting to travel when the shuttles are unavailable 2015-10-04 15:46:17 +02:00
Mads Boddum 94e1139428 The shuttle is now marked as unavailable after it has taken off 2015-10-04 12:30:48 +02:00
Mads Boddum 31061ac69e Fixed an issue where you could travel to shuttleports on other planets 2015-10-04 10:49:31 +02:00
Mads Boddum 01f62c0fc1 You now have to be 25m closer to a shuttle in order to use a ticket 2015-09-30 19:16:57 +02:00
Mads Boddum 192d3ff1a6 Max allowed distance to the shuttle for a ticket to be used is now based on the location of the shuttle and not the area you spawn in 2015-09-30 16:57:00 +02:00
Mads Boddum acaffc1cbf Added a, currently empty, method for handling the creation of shuttles so they can take off and land 2015-09-30 15:13:09 +02:00
Mads Boddum 82eb56ca49 Refactored a method in TravelService in order to reduce repetitiveness 2015-09-29 15:23:29 +02:00
Mads Boddum 1da3f0f1fc Fixed a bug where a ticket would sometimes be invalid although the departure location is correct 2015-09-29 13:46:50 +02:00
Mads Boddum f4c86d35a2 Fixed an issue where the price of roundtrip tickets was calculated incorrectly 2015-09-27 10:10:15 +02:00
Mads Boddum ee5c674c3c Refactored the majority of TravelService and fixed a bug which prevented players from travelling to other planets 2015-09-26 15:54:27 +02:00
Mads Boddum 17783ddb2e Updated TravelService to use TravelPoint's renamed suiFormat() method 2015-09-26 11:08:00 +02:00
Mads Boddum de851cbf94 Fixed a packet issue that prevented players from purchasing tickets with a different arrival planet than the one they're departing from 2015-09-26 09:51:04 +02:00
Mads Boddum 025c175cf8 Removed a couple of unnecessary lowercase string conversions in TravelService 2015-09-26 08:32:39 +02:00
Mads Boddum d45fc59441 Fixed an issue where selecting round-trip wouldn't give you the ticket for the reverse route 2015-09-26 07:27:50 +02:00
Mads Boddum a81eca6c9b Added support for round-trips when purchasing a ticket 2015-09-26 07:18:52 +02:00
Mads Boddum eb9a63538d Travel tickets can now be used either by using the ticket or using the Ticket Collector 2015-09-26 07:11:12 +02:00
Mads Boddum cc10ce2b31 Made SQL query a private, static and final field in TravelService 2015-09-26 03:04:17 +02:00
Mads Boddum a7f97acf08 Fixed TravelPoint, PlanetTravelPointListResponse and added ticket purchasing functionality to TravelService 2015-09-26 02:02:35 +02:00