|
From: Mamutas P. <ma...@pr...> - 2003-12-31 03:17:10
|
Here is what I think: We need two interfaces (sorry, but I cannot come up with good names :( ) 1) IsCarryable (the item which can be carried). That is an 'Ability' interface which defines that the object can be carried, for example weapons or corpses. Some objects cannot be carried, like phones, dishes, food items, etc., although they are small enough, but there is no need to carry them. 2) AbleToCarry (an object which can carry objects implemented IsCarryable interfaces). Those could be aircrafts, units, general store facilities, etc. That interface will be 'Behaviour' in my opinion. Regards, mamutas -----Original Message----- From: xen...@li... [mailto:xen...@li...] On Behalf Of Federico Andres Lois Sent: Tuesday, December 30, 2003 2:37 PM To: xen...@li... Subject: [Xenocide-programming] Carriable Items on Xenocide Hi, I am being working on Xenocide Data Code... And I had received some comments about the interface of Storable and Wearable Objects... Storable objects are those that can be put on Stores or Aircrafts. However Wearable objects are those that can be used by aliens/soldiers. I was thinking to change Wearable to Carriable cause you can carry corpses but you cant wear them. The problem is: Is Carriable an Ability or a Behaivioral Interface? (you can check the code to see what are on those directories). I was going to put it in Ability but I am not sure, I am open to suggestions. Greetings Red Knight ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Xenocide-programming mailing list Xen...@li... https://lists.sourceforge.net/lists/listinfo/xenocide-programming --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.556 / Virus Database: 348 - Release Date: 12/26/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.556 / Virus Database: 348 - Release Date: 12/26/2003 |