Repository navigation
3.1.0
- Artemis 2.4.0 support. This includes: support for the new ships and the new Ximni faction, new
jumpmasterfaction attribute,elitefaction attribute changed tohasspecials,playershieldsattribute for fighters, support for game master custom buttons, support for ship accent colors and fighter capital ship IDs. All references to "elite" changed to "special" in the code base. - VesselData refactor. There is no longer a static instance of
VesselData. Instead, you create aContextobject and pass it to the required classes. This was done in order to allow automated testing with differentvesselData.xmlfiles to exercise various scenarios. - Load Artemis resources however you want. Instead of simply giving a path to the Artemis install, you can now construct the
Contextclass passing in an object that implements thePathResolverinterface. This gives you much more flexibility when it comes to loading Artemis resource files. IAN comes with twoPathResolverimplementations out of the box:FilePathResolver(to read from disk) andClasspathResolver(to read resources packaged inside your JAR). - Way easier proxying.
ArtemisNetworkInterfacenow has aproxyTo()method. Simply pass in a recipientArtemisNetworkInterfaceobject, and any packets which are not caught by your listeners are automatically passed through to the proxied connection. - Ship number/index consistency fix. The Artemis protocol isn't 100% consistent about whether Artemis is ship 1 or ship 0. This change makes your life easier by making IAN consistent (Artemis is ship 1) even though the protocol isn't.
- Determine whether a disconnection was "normal." Some
DisconnectEventsare expected to occur when a connection is terminated intentionally. TheisNormal()method onDisconnectEventwill now tell you whether thisDisconnectEventis expected or not. README.mdupdated. It now includes detailed information about how to create clients or server proxies, including updated example source code.- Added
pom.xml. Don't know why this wasn't in there before! Anyway, this should let you build the JAR from a local copy of the repository with themvn installcommand. - A bunch of documentation updates. Yay for documentation!
- More automated test coverage. We are currently at 44.1% coverage.
- A bunch of internal improvements which you probably won't care about, but which make IAN better.
Here are the things to watch for that may break your existing code upon updating to IAN 3.1.0:
VesselData.setArtemisInstallPath()doesn't exist anymore, since we're now using the newContextobject with the more powerfulPathResolvermechanism. Construct aContextobject and pass in an object which implementsPathResolver. There are a few constructors and methods which now require you to pass in theContext(most notably, constructors forThreadedArtemisNetworkInterface).- To be consistent with the new terminology used in
vesselData.xml, all references to the term "elite" in the code have been changed to "special." Any references you may have in your code will need to be changed accordingly. - Make sure that any code that identifies a ship by number/index is one-based and not zero-based.