Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2000:
[Freeciv-Dev] Re: Where can I get that Great Tileset?
Home

[Freeciv-Dev] Re: Where can I get that Great Tileset?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Where can I get that Great Tileset?
From: Erik Sigra <freeciv@xxxxxxx>
Date: Sat, 02 Sep 2000 12:44:13 +0200

Thue wrote:
> I would like to implement borders, make a guard tower tile improvement and
> improve the AI, but note it is really a job pool and not a job queue :)

Were you thinking of porting the borders from FreecivAC to Freeciv or
doing it from scratch?

And now to the coordinates again :-). Has anyone considered a coordinate
system like this?:

My System:
==========

The Coordinate System:

* 1-Dimensional (t here).
* Two user-defined constants (constant during a game), X and Y.
* X is the width of the map (8 here).
* Y is the height of the map (12 here).
* X*Y is the size of the map (96 here).

 /\  /\  /\  /\  /\  /\  /\  /\
/ 0\/12\/24\/36\/48\/60\/72\/84\
\  /\  /\  /\  /\  /\  /\  /\  /\
 \/ 1\/13\/25\/37\/49\/61\/73\/85\
  \  /\  /\  /\  /\  /\  /\  /\  /\
   \/ 2\/14\/26\/38\/50\/62\/74\/86\
    \  /\  /\  /\  /\  /\  /\  /\  /\
     \/ 3\/15\/27\/39\/51\/63\/75\/87\
      \  /\  /\  /\  /\  /\  /\  /\  /\
       \/ 4\/16\/28\/40\/52\/64\/76\/88\
        \  /\  /\  /\  /\  /\  /\  /\  /\
         \/ 5\/17\/29\/41\/53\/65\/77\/89\
          \  /\  /\  /\  /\  /\  /\  /\  /\
           \/ 6\/18\/30\/42\/54\/66\/78\/90\
            \  /\  /\  /\  /\  /\  /\  /\  /\
             \/ 7\/19\/31\/43\/55\/67\/79\/91\
              \  /\  /\  /\  /\  /\  /\  /\  /\
               \/ 8\/20\/32\/44\/56\/68\/80\/92\
                \  /\  /\  /\  /\  /\  /\  /\  /\
                 \/ 9\/21\/33\/45\/57\/69\/81\/93\
                  \  /\  /\  /\  /\  /\  /\  /\  /\
                   \/10\/22\/34\/46\/58\/70\/82\/94\
                    \  /\  /\  /\  /\  /\  /\  /\  /\
                     \/11\/23\/35\/47\/59\/71\/83\/95\
                      \  /\  /\  /\  /\  /\  /\  /\  /
                       \/  \/  \/  \/  \/  \/  \/  \/

The Coordinates of the tiles surrounding t. (I think this is more
elegant than an xy-system.)

          /\t + Y - 2 /\
         /  \        /  \
        /    \      /    \
       /      \    /      \
      /        \  /        \
     /  t - 1   \/t + Y - 1 \
    /\          /\          /\
   /  \        /  \        /  \
  /    \      /    \      /    \
 /      \    /      \    /      \
/        \  /        \  /        \
  t - Y   \/    t     \/  t + Y   \
          /\          /\          /
\        /  \        /  \        /
 \      /    \      /    \      /
  \    /      \    /      \    /
   \  /        \  /        \  /
    \/t - Y + 1 \/  t + 1   \/
     \          /\          /
      \        /  \        /
       \      /    \      /
        \    /      \    /
         \  /        \  /
          \/t - Y + 2 \/
 
This eliminates the need to pass 2 coordinates to many functions. Only 1
is needed. The Y constant would be global. I guess this would save some
memory (although I know nothing about c programming)?

> -Thue

-Erik



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