07-03-2010, 10:08 PM | #11 |
Join Date: Dec 2006
Location: Meifumado
|
Re: [Spaceships] Getting started on a Java-based ship builder
Can I suggest you have a way to enter user-created objects?
With Eric's spreadsheet it was easy enough to go into the data tabs and add an extra line here or there without too much fear that everything would break (although it did take some trial and error to find the right place to do it).
__________________
Collaborative Settings: Cyberpunk: Duopoly Nation Space Opera: Behind the King's Eclipse And heaps of forum collabs, 30+ and counting! |
07-04-2010, 03:07 AM | #12 | |
Join Date: Aug 2004
Location: The ASS of the world, mainly Valencia, Spain (Europe)
|
Re: [Spaceships] Getting started on a Java-based ship builder
Quote:
allow me to fire up netbeans, and do some modeling: Code:
public abstract class abstractSystem { private int sizeModifier; private int price; private String name; public abstractSystem(int sizeModifier, int price, String name) { this.sizeModifier = sizeModifier; this.price = price; this.name = name; } /** * @return the sizeModifier */ public int getSizeModifier() { return sizeModifier; } /** * @param sizeModifier the sizeModifier to set */ public void setSizeModifier(int sizeModifier) { this.sizeModifier = sizeModifier; } /** * @return the price */ public int getPrice() { return price; } /** * @param price the price to set */ public void setPrice(int price) { this.price = price; } /** * @return the name */ public String getName() { return name; } /** * @param name the name to set */ public void setName(String name) { this.name = name; } } public interface armorSystem { public void getDR(); public int setDR(int dDR); } public interface frontHullSystem { } public interface centerHullSystem { } public interface rearHullSystem { } public interface hullSystem extends frontHullSystem, centerHullSystem, rearHullSystem { } public interface coreSystem { } public interface powerSystem { public int getPowerPoints(); public void setPowerPoints(); } |
|
07-04-2010, 12:38 PM | #13 | ||
Join Date: Jul 2005
Location: Jeffersonville, Ind.
|
Re: [Spaceships] Getting started on a Java-based ship builder
Quote:
Partly discussed above, but very similar to your suggestion. There would be broadly described Objects for each major type of system and the data files would fill in the details. I'm going to go with Langley's suggestion of putting Core systems into Front, Center and Rear groupings (be it vector, linked list, etc.) rather than be on their own. Either way they have to have special treatment, but it fits closer to the rules in the book as well as being a bit easier to work with. Either way you do it there will have to be special methods to handle them, but grouping them with the location makes it: Code:
Run checkCore method; //verifies if no more than 2 Core locations have been used in Front, Center or Rear. Process Front; Process Center; Process Rear; Code:
Process Front; Process Core[0]; Process Center; Process Core[1]; Process Rear; Process Core[2]; With all that said I suppose I should probably get started and actually, yanno, start coding... For that matter, any suggestions on where to store the files online? I'd rather it be more mature before I do anything like SourceForge, but at the same time I want a place to put it for collaboration. Oh, and Eric, since you're involved in another SJ Games software project, albeit an official one, can you tell me how I could go about giving this project a permissive license (probably the GPL v2) without violating SJ Games IP for the content of the data files? I'd like some official word on it in some capacity since the Online Policy doesn't address it.
__________________
The user formerly known as ciaran_skye. __________________ Quirks: Doesn't proofread forum posts before clicking "Submit". [-1] Quote:
|
||
07-04-2010, 12:47 PM | #14 | |
Join Date: Aug 2004
Location: Binghamton, NY, USA. Near the river Styx in the 5th Circle.
|
Re: [Spaceships] Getting started on a Java-based ship builder
Quote:
__________________
Eric B. Smith GURPS Data File Coordinator GURPSLand I shall pull the pin from this healing grenade and... Kaboom-baya. Last edited by ericbsmith; 07-04-2010 at 01:10 PM. |
|
07-04-2010, 02:47 PM | #15 |
GCA Prime
Join Date: Aug 2004
Location: Portland, OR
|
Re: [Spaceships] Getting started on a Java-based ship builder
SJGames licensing is at licensing@sjgames.com.
__________________
Armin D. Sykes | Visit my GCA5 blog for updates and previews. | Get GURPS Character Assistant 5 now at Warehouse 23. |
07-04-2010, 03:25 PM | #16 | |||
Join Date: Jul 2005
Location: Jeffersonville, Ind.
|
Re: [Spaceships] Getting started on a Java-based ship builder
Quote:
Quote:
It's entirely possible many of the classes I'm writing could be used in another project that would more or less automate aspects of ship operations and combat, which might be useful as a GM tool. Though that I think violates other game aid rules, so I wouldn't begin that unless it were cleared. Edit: What the heck, I'll fire off an email now while I'm thinking about it.
__________________
The user formerly known as ciaran_skye. __________________ Quirks: Doesn't proofread forum posts before clicking "Submit". [-1] Quote:
|
|||
07-04-2010, 04:34 PM | #17 |
Join Date: May 2008
Location: CA
|
Re: [Spaceships] Getting started on a Java-based ship builder
I see no reason why a subsection of Eric's spreadsheet should run into licensing issues if that subsection (the data files) are distributed under SJGames' online policy while the source code for the program is distributed under the GPL or something similar.
It would be similar to creating an OpenOffice GURPS Spaceships spreadsheet - the data files (the spreadsheet) are covered under the Online Policy, while the software that reads the data files (the OpenOffice software itself) is covered under the GPL (or whatever license they use). |
07-04-2010, 04:55 PM | #18 | ||
Join Date: Jul 2005
Location: Jeffersonville, Ind.
|
Re: [Spaceships] Getting started on a Java-based ship builder
Quote:
__________________
The user formerly known as ciaran_skye. __________________ Quirks: Doesn't proofread forum posts before clicking "Submit". [-1] Quote:
|
||
07-04-2010, 05:10 PM | #19 |
Join Date: Aug 2004
Location: Binghamton, NY, USA. Near the river Styx in the 5th Circle.
|
Re: [Spaceships] Getting started on a Java-based ship builder
More importantly, no matter how hard you try, you are going to code some parts of the information from the books into the program itself, even if you offload most of the data from the books into data files. And you cannot distribute those bits of SJGames intellectual property under a GPL unless SJGames consents to have it distributed under that license.
__________________
Eric B. Smith GURPS Data File Coordinator GURPSLand I shall pull the pin from this healing grenade and... Kaboom-baya. |
07-04-2010, 06:18 PM | #20 | ||
Join Date: Jul 2005
Location: Jeffersonville, Ind.
|
Re: [Spaceships] Getting started on a Java-based ship builder
Quote:
If not, I suppose it wouldn't be impossible to find an OSS or other permissive license that works in this situation.
__________________
The user formerly known as ciaran_skye. __________________ Quirks: Doesn't proofread forum posts before clicking "Submit". [-1] Quote:
|
||
Tags |
design, java, software, spaceships |
Thread Tools | |
Display Modes | |
|
|