Author Topic: I Made a Toolset for Java Devs  (Read 1449 times)

wire_hall_medic

  • Rogueliker
  • ***
  • Posts: 159
  • Karma: +0/-0
    • View Profile
I Made a Toolset for Java Devs
« on: June 25, 2019, 02:23:23 AM »
Hey guys; I made a thing.

I really like libtcod, but as I use Java as a preference, I wanted something in the same vein for that language. I packaged up and documented a lot of the stuff I've made over the last couple years, and put it up on GitHub. I'll make a RogueBasin page for it soonish, but here it is now.

https://github.com/WireHallMedic/WidlerSuite

The documentation is in _Widler Suite API.rtf, and the .jar has a demo of most of the classes.

Lemme know what you think!

Krice

  • (Banned)
  • Rogueliker
  • ***
  • Posts: 2316
  • Karma: +0/-1
    • View Profile
    • Email
Re: I Made a Toolset for Java Devs
« Reply #1 on: June 25, 2019, 06:48:10 AM »
Randomly picked Room.java and I already found something to nitpick. You are using Coord class also for size, but I think it's a bad idea. Much better is just create a class for size that has width and height variables.

wire_hall_medic

  • Rogueliker
  • ***
  • Posts: 159
  • Karma: +0/-0
    • View Profile
Re: I Made a Toolset for Java Devs
« Reply #2 on: June 25, 2019, 02:56:32 PM »
I use Coords for anything where I need paired ints which represent perpendicular axes. I agree that from a conceptual standpoint size and location are different, but I prefer to use the same tool for mechanically identical things. Of course, it'd be trivial for you to adapt it to accept a Dimension object.

Also, thank you for your feedback. A thread isn't official until it has that special Krice touch (I mean this sincerely, by the way).

Krice

  • (Banned)
  • Rogueliker
  • ***
  • Posts: 2316
  • Karma: +0/-1
    • View Profile
    • Email
Re: I Made a Toolset for Java Devs
« Reply #3 on: June 26, 2019, 05:49:44 AM »
but I prefer to use the same tool for mechanically identical things.

Then you shouldn't even use classes, because plain variables can do everything from "mechanical" point of view. But I do get it, some people have "special" thoughts about programming. I think we all do at some point, but in most cases it's going to backfire on us.