Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Skills!
- To: crossfire (at) ifi.uio.no
- Subject: Re: Skills!
- From: Benjamin Thomas Ketteridge <>
- Date: Wed, 01 Jun 1994 13:51:15 +0100
- In-reply-to: Your message of "Tue, 31 May 1994 15:28:49 PDT." <>
Mark Wedel wrote:
> A few notes on the proposed system of micro skills:
>
> Having a multitude of weapon skills becomes fairly difficult to program.
> Either you need to have space for all the potential weapons in the player
> structure (which would be a lot), or some other method needs to be found
> to keep track of the skill levels.
Hasn't anybody thought of hanging a linked list off of a single pointer
in the player structure? That's the obvious way of keeping track of a
variable number of items in a list - the same could be done with spells.
Linked lists are probably the easiest complex structure to build in C -
I learnt C on a commercial course in a week, and by the end of the week
I had basically built a simple-minded single-user database using linked
lists.
Just my ha'penneth, Ben.
+--------------------------------------------------------------------------+
| _|--|_ | Disclaimer: I've got a degree and maybe 1/2 of a PhD. |
| (\/) +--------------------------------+--------------------------+
| vv | However, I still know nothing! | |
+--------------+--------------------------------+--------------------------+