Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2006:
[Freeciv-Dev] (PR#18529) [Patch] Unit class bitvector type
Home

[Freeciv-Dev] (PR#18529) [Patch] Unit class bitvector type

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#18529) [Patch] Unit class bitvector type
From: "Marko Lindqvist" <cazfi74@xxxxxxxxx>
Date: Wed, 12 Jul 2006 03:05:37 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=18529 >


  This defines type bv_unit_classes. There is no users in this patch. 
Several patches included this definition. I made it separate patch in 
order to avoid conflict between those patches.


  - ML


diff -Nurd -X.diff_ignore freeciv/common/packets.def freeciv/common/packets.def
--- freeciv/common/packets.def  2006-07-11 19:05:53.578125000 +0300
+++ freeciv/common/packets.def  2006-07-12 12:15:10.171875000 +0300
@@ -202,6 +202,7 @@
 type BV_CITY_OPTIONS    = bitvector(bv_city_options)
 type BV_SPECIAL         = bitvector(bv_special)
 type BV_PLAYER          = bitvector(bv_player)
+type BV_UNIT_CLASSES    = bitvector(bv_unit_classes)
 type DIPLSTATE         = diplstate(struct player_diplstate)
 type VISION            = uint32(unsigned int)
 
diff -Nurd -X.diff_ignore freeciv/common/unittype.h freeciv/common/unittype.h
--- freeciv/common/unittype.h   2006-07-11 19:05:54.468750000 +0300
+++ freeciv/common/unittype.h   2006-07-12 12:15:41.015625000 +0300
@@ -33,6 +33,7 @@
   UCF_LAST
 };
 
+BV_DEFINE(bv_unit_classes, UCL_LAST);
 BV_DEFINE(bv_unit_class_flags, UCF_LAST);
 
 struct unit_class {

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#18529) [Patch] Unit class bitvector type, Marko Lindqvist <=