Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2001:
[Freeciv-Dev] Re: freeciv2 kernel,modules and rulesets
Home

[Freeciv-Dev] Re: freeciv2 kernel,modules and rulesets

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>, Ed Hunter <ed.hunter@xxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: freeciv2 kernel,modules and rulesets
From: Andrew Sutton <ansutton@xxxxxxx>
Date: Tue, 4 Dec 2001 09:27:40 -0500

On Tuesday 04 December 2001 04:52 am, Ross W. Wetmore wrote:

> I'm sure that inventive peole can come up with an equal number of
> creative solutions to the problem once they learn how to figure out
> what the problem is, rather than what the problem with the current
> solution is.

i've got a partial solution that could be used to solve those problems. i'd 
have to add a direction field to the instance parameter of units and define 
values for it.

the basic idea is that each mode of transportation is encapsulated in a class 
with a goto() method. you specify where you want to go and the class 
implements the moves across the map.

the only thing this doesn't do is offer a specialized interface for selecting 
"meta locations" like "this location i planted magically". i guess that could 
translate to "this city". maybe i should change the interface to allow 
movement to a set object (e.g. city, waypoint, etc).

would this teleportation be an additional mode of transportation? or the 
default for units supporting it?

andy


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