Hi John, Yes, but how do you intend to compile and test your new class?
Unless you download the VASSAL source and run VASSAL under the debugger, you will have a hell of a time debugging your code. Including a new class into your module is easy: I suggest you copy the source of DiceButton.java to MyDiceButton.java, in a new project called test. Make a couple of minor changes and compile it. 1. Copy the class file structure you generate into you module it will be a directry called 'test' containing a file called 'MyDiceButton.class' (plus probaly a couple of anonymous classes) 2. Edit the module, click on the module component and select 'Add Imported Class' and add test.MyDiceButton 3. Save the module. That't it. Cheers, Brent. >*********** REPLY SEPARATOR *********** > >On 15/11/2006 at 6:01 PM John Campbell wrote: >I've gone through the FAQ and pulled down all the code for the application, >but from what I could understand those things were for modifying VASSAL as >a >whole. So something like the whiteboard feature that I've seen talked about >would fall into that categorey. From what I've read at >http://www.vassalengine.org/wiki/doku.php?id=programming there seems to be >a >way to make a class and include it in the build file without going through >the formal process of submitting it into the eclipse repository. What I'm >trying to do isn't something that really applies to VASSAL as a whole it >just applies to one module and as such I want to go out that way. Like I >said, this should be simple yet I can't quite grasp how to include one of >these classes in the build file. It's probably blindingly obvious to a >number of people (which is probably why it is glossed over in the >tutorial), >but it is something that I just can't get my head around for some reason. > >There's a portion in there about doing it for a custom counter factory, but >I'm not looking to override anything I want to add a new piece. > >[Non-text portions of this message have been removed] > > > ____________________________________________________________ Brent Easton Analyst/Programmer University of Western Sydney Email: [EMAIL PROTECTED]
