From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4679 invoked by alias); 4 Jul 2004 00:38:11 -0000 Mailing-List: contact xconq7-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: xconq7-owner@sources.redhat.com Received: (qmail 4630 invoked from network); 4 Jul 2004 00:38:10 -0000 Received: from unknown (HELO av13-2-sn4.m-sp.skanova.net) (81.228.10.103) by sourceware.org with SMTP; 4 Jul 2004 00:38:10 -0000 Received: by av13-2-sn4.m-sp.skanova.net (Postfix, from userid 502) id 27F1F37E48; Sun, 4 Jul 2004 02:38:10 +0200 (CEST) Received: from smtp4-1-sn4.m-sp.skanova.net (smtp4-1-sn4.m-sp.skanova.net [81.228.10.181]) by av13-2-sn4.m-sp.skanova.net (Postfix) with ESMTP id 1942F37E43; Sun, 4 Jul 2004 02:38:10 +0200 (CEST) Received: from [212.181.162.155] (h155n1fls24o1048.bredband.comhem.se [212.181.162.155]) by smtp4-1-sn4.m-sp.skanova.net (Postfix) with ESMTP id C1ED137E44; Sun, 4 Jul 2004 02:38:09 +0200 (CEST) X-Sender: u22611592@m1.226.comhem.se Message-Id: In-Reply-To: <17030786.1088898907645.JavaMail.root@skeeter.psp.pas.earthlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sun, 04 Jul 2004 00:43:00 -0000 To: Ramsey From: Hans Ronne Subject: Re: xConq alternate combat engine project Cc: xconq7@sources.redhat.com X-SW-Source: 2004/txt/msg00629.txt.bz2 > Hello everyone. I'm part of a small team (two people) of >undergraduate students at Portland State University. We are looking into >the possibility of building a pathway for alternate combat engines into >xConq. > What we would like to ask is: >1. Is there any logical way to do this without changing xConq's code? > >2. If not, where might be a good fissure point in xConq's action/combat >system to interface a "black-box" combat resolution system? Hopefully as >early as possible after combat being joined. > Our idea, if this functionality is not already built into >the system, is to add a GDL tag that would turn on this extension and give >the system the name and/or location of the combat resolution system to be >used. Welcome to the list! Glad to hear that you like Xconq enough to think about how to improve it. As for your questions, Xconq already has two different combat engines, called "combat model 0" and "combat model 1". Combat model 0 is the traditional engine used in most Xconq games, while combat model 1 is similar to combat resolution in Civ2 (absolute attack and defend values, combat in several rounds until one unit is defeated). You decide what combat model to use in a game by setting the GDL variable "combat-model". if you want an engine with decisive until-death battles, you should use combat model 1. Right now, the two combat engines are intertwined within combat.c. I've been planning to separate them and put them in different files. Once that has been achieved, it would be easy to add more combat engines as plug-in modules, similar to how the AI code already works (mplayer, iplayer etc). Any code you would like to contribute would be welcome. We need more Xconq developers. Hans