adonthell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Adonthell-devel] Iems


From: Kai Sterker
Subject: Re: [Adonthell-devel] Iems
Date: Mon, 18 Feb 2002 22:51:49 +0100 (CET)

On Mon, 18 Feb 2002 13:08:43 -0500 Mike Avery wrote

>> But as you are going to need at least basic items to do the rest, I could
>> code something up, if you want. That possibly won't be the final thing,
>> but it's a start at least.
> 
> That would be great if you could whip something up, even if its very 
> primitive.  Just enough so that I could do some testing would be great.

Okay, I have a first, very primitive system working. 

I've added it into the combat directory of the Branch_road_to_0-4 CVS
branch. That way, it won't interfere with anything Alex does in the src
directory.

To build it, you'll probably need to run configure --enable-tools, and you
should also pass the --enable-py-debug option, as errors in the python
scripts are easier to detect then.

To run it, you'll have to be inside the combat directory, won't work
otherwise.

So what's there for now?

There is the item_base class, with a few more or less useful methods. I
guess to really make some use of it, we'd need more. For example a method
to iterate over the attributes that is available from python side.

I have implemented 3 actions, and there are two small action-classes
(book.py and weapon.py) that demonstrate the use, in a rather primitive
way.

The main work is done in itemtest.cc.


Okay, now I'll be waiting for your requests, Mike. Now that there is some
code to talk about, we can start improving on it. So if there is any
functionality you need, or anything that won't work well the way it is,
please let me know. Or just fix it yourself. :)

Kai





reply via email to

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