Re: [Cxtable-devel] Uncategorized....
Status: Alpha
Brought to you by:
xiarcel
From: <xi...@pr...> - 2001-12-12 18:08:04
|
Cool... the xPluginable interface is already what is used by the plugins.... My thought, though, is Jobob has his own package of cxtable plugins... let's say...I want to play Jobob's super-duper battleship game... jobob.cxtplugs.battleship.*; How do I call that? Would that be as simple as putting the .jarred up jobob package into a folder and... xPluginable xpa = xPluginFactory.create (...,"jobob.cxtplugs.battleship.BattleMain",true);? --- Original Message --- From: Borne Goodman-Mace <bm...@eg...> To: David Scott Williams <xi...@pr...> Subject: Re: [Cxtable-devel] Uncategorized.... >Right, that is currently the only Image. > >The way it should work in the long run (I suggest) would be that there >is a Plugin interface which the "main" class for each plugin implements >(if this isn't the case already). Then to determine the set of plugins >available the full class name of them should be listed in a file, or >property, or some such construct to be read in. Then as I mentioned in >another email the syntax would be much like the following -> > >Class pluginClass = Class.forName ("cxtable.plugins.chess.Chess"); >Plugin pluginInstance = (Plugin) pluginClass.newInstance(); >pluginInstance.start(); > >A note that any methods called on pluginInstance would have to be >defined in the Plugin interface. In this way you can fairly dynamically >instantiate plugins, and could even allow them to live outside of the >cxtable name space. Also, only the Plugin interface would need to be >imported (if not in the same package). > >Hope this was clear / helpful. > >--bjgm > >On Tue, 2001-12-11 at 09:33, David Scott Williams wrote: >> Cool.... images would be cxtlogo.jpg? >> >> OK... That is great... I do have some questions... >> >> If a "plugin" such as Chess "import cxtable.Plugin.*;"... how do I make it so that it can be loaded by the program if it is not in the same directory? If it is in a deeper directory ("plugins"), would it be looked for by the VM when it runs? >> >> ~Dave >> (go ahead and change the reply to be to cxtable- de...@li...) >> >> Borne Goodman-Mace wrote: >> >> > I just finished 90% of the CVS move, and I think the chess information >> > is at home, so I will try to move those files tonight. >> > >> > I made a /bin, /images, and /src tree. All of the java source is under >> > /src/cxtable/<package>. >> > >> > When making changes to the java files to support this layout, make sure >> > to set the package name to be cxtable.<package>. >> > >> > --bjgm >> > >> > On Tue, 2001-12-11 at 17:10, Williams, David wrote: >> > > This is what should be left.... >> > > >> > > xDiceListener >> > > xDicePanel >> > > xDie >> > > xDownloadLinlyn >> > > xDownloadListener >> > > xTimed >> > > xTimer >> > > xRoboticConverserx >> > > TextAreaConsole >> > > xReDirect >> > > >> > > >> > > >From the above, xRoboticConverserx does not really have a place to exist anymore... (At one point, it allowed me to get some sleep while my alpha-tester played around with it.... He got off work at 3am my time... and by then... I was asleep...so the Robotic Converser looked for activity in the Chat windows, and replied with randomly selected messages...) >> > > >> > > The TextAreaConsole is some twiddling I did (stolen from a different project) for re-directing the output from stdout to the textarea... In the case of some debugging tests I did recently, I -a- did not want it in a file, and -b- did not want it scrolling past at the speed of light in a batch window...so I incorporated this piece....don't really think of it as part of the project... but it is used by the xReDirect piece. >> > > >> > > >> > > David Scott Williams >> > > Computer Associates >> > > Marketing Representative-Sales Call Center >> > > One Computer Associates Plaza >> > > Islandia, New York 11749 >> > > tel: +1 800-243-9462 ext. 73431 >> > > tel: +1 631-342-3431 (Direct) >> > > fax: +1 631-342-5734 >> > > wi...@ca... >> > > >> > > >> > > _______________________________________________ >> > > Cxtable-devel mailing list >> > > Cxt...@li... >> > > https://lists.sourceforge.net/lists/listinfo/cxtable- devel >> > > >> > >> > _______________________________________________ >> > Cxtable-devel mailing list >> > Cxt...@li... >> > https://lists.sourceforge.net/lists/listinfo/cxtable- devel >> >> -- >> ~Dave >> xi...@pr... >> http://sourceforge.net/projects/cxtable >The xTable Project< >> http://sourceforge.net/projects/dustyscript >Dustyscript Child Script Language< >> >> |>>weblog: http://www.geocities.com/xiarcel/weblogs/log.html<<| >> >> "He who trades even a small amount of freedom for temporary security >> deserves neither freedom, nor security" >> -Benjamin Franklin >> >> "When I think back on all the crap I learned in High School... >> it's a wonder I can think at all..." >> -Paul Simon, "Kodachrome" >> >> > > |