Re: [Freeciv-Dev] Serious Suggestions
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
>>>>> "Schaefer" == Schaefer Frank R <fschaef@xxxxxxxxxxxxxxx> writes:
Schaefer> Enable Users to define a plan for constructions, so
Schaefer> that you could say for example:
Schaefer> 1) Build 3 Archers; 2) Build Granary; 3)
Schaefer> Build City-Walls;
Schaefer> In later version, this could be done like a little
Schaefer> programming language so that one could write something
Schaefer> like
Schaefer> OnEvent( Science(Monotheism) ) { if( !
Schaefer> Wonder(JS-Bach) ) Build JS-Bach; }
I have also considered this recently. I think using a "real" language
for this is a bit overkill. I considered a simple language with some
predefined predicates like:
defenders < 2 : Riflemen
food_surplus > 2 : Settlers
!have(Great Wall) && size >= 4 : City Walls
size >= 7 : Aqueduct
production > 8 : JS-Bach
which would be just parsed from the top till the first is true. This
could be easily made with lex & yacc. Also, a GUI could be simply made
that produces this output.
Checks if it is already there or can't be build are unnecessary IMHO,
if it can't be build, the next is taken.
I have a little experience with lex and yacc, so I could try this.
Falk
- Re: [Freeciv-Dev] Serious Suggestions, (continued)
- Re: [Freeciv-Dev] Serious Suggestions,
Falk Hueffner <=
- Re: [Freeciv-Dev] Serious Suggestions, Matt Busigin, 1999/02/23
- Re: [Freeciv-Dev] Serious Suggestions, Greg Wooledge, 1999/02/23
- Re: [Freeciv-Dev] Serious Suggestions, Stephen Hodge, 1999/02/24
- Re: [Freeciv-Dev] Serious Suggestions, Tony Stuckey, 1999/02/24
- Re: [Freeciv-Dev] Serious Suggestions, Matt Busigin, 1999/02/24
|
|