[Freeciv-Dev] Re: unit flags/capabilities
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Thursday 29 November 2001 02:39 pm, you wrote:
> You could do that in a sickening way with bitwise math.
> F_UNIT_TRANSPORT_1,F_UNIT_TRANSPORT_2,F_UNIT_TRANSPORT_4,F_UNIT_TRANSPORT_8
>, etc, and have the get_transport_capacity() function sum them and return
> them.
eww... that is gross. i don't think we want to submit freeciv to the occc :)
to be honest, if i really wanted to implement a "good" generic capability
subcription design, i think i'd have to go with the use of function pointers.
its quite powerful. it also lets you specialize behaviors for common
capabilities.
implementing everything as a function definitely has its benefits. the big
downfall is that its alot harder to configure using the ruleset
specifications. it's also a little harder to get your head around. which is
what i'm struggling to do right now.
andy
- [Freeciv-Dev] Re: unit flags/capabilities, (continued)
- [Freeciv-Dev] Re: unit flags/capabilities, Andrew Sutton, 2001/11/29
- [Freeciv-Dev] Re: unit flags/capabilities, Raimar Falke, 2001/11/29
- [Freeciv-Dev] Re: unit flags/capabilities, Andrew Sutton, 2001/11/29
- [Freeciv-Dev] Re: unit flags/capabilities, Reinier Post, 2001/11/29
- [Freeciv-Dev] Re: unit flags/capabilities, vze2zq63, 2001/11/29
- [Freeciv-Dev] Re: unit flags/capabilities, Andrew Sutton, 2001/11/29
- Message not available
- [Freeciv-Dev] Re: unit flags/capabilities,
Andrew Sutton <=
|
|