adonthell-devel
[Top][All Lists]
Advanced

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

Re: [Adonthell-devel] looking for work


From: Kai Sterker
Subject: Re: [Adonthell-devel] looking for work
Date: Thu, 30 Mar 2006 09:43:33 +0200

On 3/29/06, Alexander Hupfer <address@hidden> wrote:

> I looked at the api documentation and itemtest.py and I think I
> understand how it works (although, I didn't find and documentation about
> the function "pyitem = item.get_instance ()" ).

get_instance() is part of python/script.cc

http://adonthell.berlios.de/api/da/dd6/classpython_1_1script.html#7a12f3a0580e0be097fa7597279f0a4a

It will get you an item's python implementation. This is required
because when a script is called fom the engine, it will get the C++
item instance which only provides the basic item interface. If you
want to access item specific methods, you'll need to retrieve the
actual python object with the get_instance() method. (Hope that's
somewhat clear ... might be a little confusing at first)

> But what shall I actually work on now?

I guess a roadmap could look as follows:
* character implementation (all attributes, properties, skills, etc ...)
* unarmed combat between such characters
* basic items (melee weapons and armour to start with)
* armed combat
* item improvements
* fighting feats

Basically, what we will need for later when there is a map engine are
a set of low level funtions that can be called when certain actions or
events occur on the map. Like when two charecters are fighting, you
would need a method that determines whether a hit was landed and if so
deals damage accordingly. Some information should be returned that can
be used to play sounds accordingly or display damage info on screen.

Such a method could then be used from the scripts that will control
player and NPC movements and actions. So to the outside, there are
probably no more than a handful of combat related methods, but on the
inside there is lots more.

If that sounds like a plan to you, you might be able to come up with a
design that incorporates the required features. We could also work
together on a design, if you prefer.

I know, it's quite hard to find a place to start and figure out what
to do and how to do it, when you're new to a project. We could meet on
IRC to discuss some things, if you like. Not sure if I can be there
regularly, but I should manage one or twice per week.

Kai




reply via email to

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