Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2001:
[Freeciv-Dev] Re: Development Strategies [Was Documentation, Usability
Home

[Freeciv-Dev] Re: Development Strategies [Was Documentation, Usability

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Development Strategies [Was Documentation, Usability and Development]
From: Petrus Viljoen <viljoenp@xxxxxxxxxxx>
Date: Mon, 03 Dec 2001 17:17:45 +0200

Andrew Sutton wrote:

> On Monday 03 December 2001 09:31 am, Gregor Zeitlinger wrote:
> > yes, thats the where I came to as well:
> > So what is it really. Some features which woulde be nice are:
> >
> > 1) XML embeddable although I think all are if you use CDATA includes
> > 2) access to XML values (simkin has already done that, but others could
> > access those after they're parsed with DOM or JDOM or whatever)
> > 3) cleanliness of syntax
> > 4) performance
> > 5) ability to extend other modules like classes (I think this would be
> > really useful since it would enable you to make cusomized games by writing
> > difference rules rather than copying others and then modifying them)
> > 6) ease to access the kernel API
> > 7) scripting language=kernel implementation language would be useful so
> > that modules can be easily in or outsourced for performance or flexibility
> > respectively. This is something BeanShell would do, AFAIK
> > 8) debuggablity (this is probably a very hairy feature)
> >
> i'm still not entirely certain we need scripting. i think the requirement
> would be that a scripting engine would have to instantiate objects in such a
> way that the kernel could deal with them without having to call back to the
> scripting language.
> .......
> for example, if i script a module to register a bombard capability, that
> should be the end of it. the scripting language should create the object or
> whatever data needs to be created and register it. the kernel should never
> call back to the scripting language during game play. this would be a sort of
> fire and forget type language. the problem is, i'm not sure if scripting
> languages can do this...

Nearly ALL the scripting engines can do this.
You simply register the (Exported) function/s to the relavent Engine  and any
script can call it.

In your case it will be the Configuration functions.

BTW: Since these discussions are mostly Java/C++ for  FC2 should they not move
to a new mailing list or freeciv-java@xxxxxxxxxxx








[Prev in Thread] Current Thread [Next in Thread]