Re: [Warzone-dev] Proper inheritance

2008-03-11 Thread Per Inge Mathisen
On Tue, Mar 11, 2008 at 12:27 AM, Giel van Schijndel <[EMAIL PROTECTED]> wrote: > > Just to nitpick a little bit. You cannot downcast, since the memory > > address points to the child object. Take this example: > > Erm to use this example: > > typedef struct > { > some_type X; > } a_new_t

Re: [Warzone-dev] [Warzone-commits] r3984 - /trunk/lib/sqlite3/sqlite3.c

2008-03-11 Thread Kevin Gillette
On Mon, Mar 10, 2008 at 5:32 AM, Dennis Schridde <[EMAIL PROTECTED]> wrote: > PS: Why do we at all have a copy of sqlite3 in our tree? Can't we just > link to > the system library instead? > This is certainly an option, however sqlite is designed to be one of those libraries that is small enough

Re: [Warzone-dev] [Warzone-commits] r3984 - /trunk/lib/sqlite3/sqlite3.c

2008-03-11 Thread Dennis Schridde
Am Dienstag, 11. März 2008 10:10:47 schrieb Kevin Gillette: > On Mon, Mar 10, 2008 at 5:32 AM, Dennis Schridde <[EMAIL PROTECTED]> wrote: > > PS: Why do we at all have a copy of sqlite3 in our tree? Can't we just > > link to > > the system library instead? > > This is certainly an option, however s

Re: [Warzone-dev] Proper inheritance

2008-03-11 Thread Dennis Schridde
Am Dienstag, 11. März 2008 08:43:03 schrieb Per Inge Mathisen: > On Tue, Mar 11, 2008 at 12:27 AM, Giel van Schijndel <[EMAIL PROTECTED]> > wrote: > > > Just to nitpick a little bit. You cannot downcast, since the memory > > > address points to the child object. Take this example: > > > > Erm t

Re: [Warzone-dev] Proper inheritance

2008-03-11 Thread Giel van Schijndel
Per Inge Mathisen schreef: > On Tue, Mar 11, 2008 at 12:27 AM, Giel van Schijndel <[EMAIL PROTECTED]> > wrote: >> > Just to nitpick a little bit. You cannot downcast, since the memory >> > address points to the child object. Take this example: >> >> Erm to use this example: >> >> typedef struc

Re: [Warzone-dev] Proper inheritance

2008-03-11 Thread Giel van Schijndel
Dennis Schridde schreef: > Am Dienstag, 11. März 2008 08:43:03 schrieb Per Inge Mathisen: >> On Tue, Mar 11, 2008 at 12:27 AM, Giel van Schijndel <[EMAIL PROTECTED]> >> wrote: Just to nitpick a little bit. You cannot downcast, since the memory address points to the child object. Take thi

Re: [Warzone-dev] Proper inheritance

2008-03-11 Thread Dennis Schridde
Am Dienstag, 11. März 2008 15:39:33 schrieb Giel van Schijndel: > Dennis Schridde schreef: > > Am Dienstag, 11. März 2008 08:43:03 schrieb Per Inge Mathisen: > >> On Tue, Mar 11, 2008 at 12:27 AM, Giel van Schijndel <[EMAIL PROTECTED]> wrote: > Just to nitpick a little bit. You cannot downcas

Re: [Warzone-dev] #2: move stats data to an SQL database

2008-03-11 Thread Warzone 2100
#2: move stats data to an SQL database +--- Reporter: muggenhor | Owner: muggenhor Type: task | Status: assigned Priority: major | Milestone:

Re: [Warzone-dev] load weapons.txt stats from SQLite DB

2008-03-11 Thread Giel van Schijndel
Warzone 2100 Trac schreef: https://trac.mortis.eu/warzone/ticket/2#comment:12 > The attached patch and stats-db.c file provide an SQLite implementation > for loading the `weapons` stats from an SQLite database. > > This patch will add a new resource type (for use with .wrf files): > `DBWEAPON`

Re: [Warzone-dev] load weapons.txt stats from SQLite DB

2008-03-11 Thread Giel van Schijndel
Giel van Schijndel schreef: > Warzone 2100 Trac schreef: > https://trac.mortis.eu/warzone/ticket/2#comment:12 >> The attached patch and stats-db.c file provide an SQLite implementation >> for loading the `weapons` stats from an SQLite database. >> >> This patch will add a new resource type (for