code logs -> 2007 -> Mon, 15 Jan 2007< code.20070114.log - code.20070116.log >
--- Log opened Mon Jan 15 00:00:25 2007
00:13 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
00:13 mode/#code [+o Chalcy] by ChanServ
00:14 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
00:15 Chalcy is now known as Chalcedon
00:23 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
00:23 mode/#code [+o Chalcy] by ChanServ
00:23 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Killed (NickServ (GHOST command used by Chalcy))]
00:23 Chalcy is now known as Chalcedon
00:32 Derakon[AFK] is now known as Derakon
00:32
< Derakon>
Okay, this is pretty cool, and I wish I could take an animation of my screen and post it easily.
00:32
< Derakon>
I've got some basic transformations working now, so I have a chain of 10 line segments that stay more or less connected, and whip each other around.
00:41
< Vornicus>
woot
00:45 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Connection reset by peer]
00:45 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
00:45 mode/#code [+o Chalcedon] by ChanServ
00:49 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
00:49 mode/#code [+o Chalcy] by ChanServ
00:50 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
00:54 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
00:55 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
00:56 mode/#code [+o Chalcedon] by ChanServ
01:02 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
01:04 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
01:04 mode/#code [+o Chalcedon] by ChanServ
01:08 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
01:18 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
01:19 mode/#code [+o Chalcedon] by ChanServ
01:28 Mahal is now known as MahalInterview
01:28 MyCatEats is now known as MyCatVerbs
01:36 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
01:38 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
01:38 mode/#code [+o Chalcedon] by ChanServ
03:38 BlueTiger [BlueTiger@Nightstar-567.natsoe.res.rr.com] has joined #Code
03:46 BlueTiger [BlueTiger@Nightstar-567.natsoe.res.rr.com] has quit [Quit: ]
04:01 MahalInterview is now known as Mahal
04:48 ReivWork is now known as Reiver
04:51 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
04:51 mode/#code [+o Chalcy] by ChanServ
04:53 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
04:59 ChalcyGone [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
05:00 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
05:02 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
05:02 mode/#code [+o Chalcedon] by ChanServ
05:02 ChalcyGone [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
05:08 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
05:08 mode/#code [+o Chalcy] by ChanServ
05:09 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
05:15 ChalcyGone [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
05:16 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
05:19 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
05:19 mode/#code [+o Chalcy] by ChanServ
05:20 ChalcyGone [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
05:35 McMartin [~mcmartin@Nightstar-10827.dsl.pltn13.pacbell.net] has quit [Quit: brb]
05:54 MyCatVerbs is now known as MyCatSleeps
06:02 BlueTiger [~BlueTiger@Nightstar-567.natsoe.res.rr.com] has joined #Code
06:08 Reiver is now known as ReivOut
06:10 AnnoDomini [~farkoff@Nightstar-29470.neoplus.adsl.tpnet.pl] has joined #Code
06:22
< Derakon>
I have a Hardpoint class that inherits from a Component class.
06:22
< Derakon>
There's an update() function in Component which basically ensures that all child components of the current component get their update functions called.
06:23 BlueTiger [~BlueTiger@Nightstar-567.natsoe.res.rr.com] has quit [Quit: ]
06:23
< Derakon>
Is there a way I can override the update function in Hardpoint, and at the end of it, call the Component update function?
06:23
< Derakon>
This is C++, by the way.
06:23
< Derakon>
(So the Hardpoint update would be "Do Hardpoint update, then do Component update, thereby ensuring that children get updated")
06:31
< Vornicus>
I used to know how to do that.
06:32
< Derakon>
Hmm...according to https://www.paklein.com/tahoe/forums/archive/index.php/t-260.html, it's just Component::update().
06:33
< Vornicus>
That sounds right.
06:38
< Derakon>
Oh, duh...the Hardpoint update function won't be called anyway, because I'm treating it as a Component.
06:38
< Derakon>
What I *want* is to call update() on Component, and have it actually descend through the inheritance tree until it hits a leaf, at which point it executes the leaf update() function. But I don't think that's possible.
06:39
< Vornicus>
"virtual"
06:39
< Derakon>
Mmm...but Component contains code in its update() function that I don't want to duplicate.
06:39
< Derakon>
I suppose I could just have a generic "handoff" function in Component, though.
06:40
< Derakon>
It's ugly, but should work.
06:40
< Vornicus>
Then you can call Component::update() from the Hardpoint code.
06:41
< Derakon>
I can't access the Hardpoint code, though, because I don't know it's a Hardpoint from outside.
06:41
< Vornicus>
that's what virtual is for.
06:41
< Derakon>
Er, reality check - can you mix virtual and non-virtual functions in one class?
06:41
< Vornicus>
yes.
06:42
< Derakon>
Then why does g++ complain "warning: 'class Component' has virtual functions but non-virtual destructor
06:42
< Derakon>
"
06:42
< Derakon>
Also does that for Hardpoint.
06:42
< Vornicus>
because the destructor has to be virtual.
06:42
< Vornicus>
other functions don't have that requirement.
06:43
< Derakon>
Ergh...my knowledge of inheritance is so bloody rusty.
06:47
< Derakon>
Ahh, there we go.
06:47
< Derakon>
Thanks for the help. I now have an alternating chain of hardpoints and modules, and only the hardpoints are allowed to rotate.
06:48 Syloqs-AFH [Syloq@NetAdmin.Nightstar.Net] has quit [Connection reset by peer]
07:00 Derakon is now known as Derakon[AFK]
07:41 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
07:41 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
07:41 mode/#code [+o Chalcedon] by ChanServ
07:43 McMartin [~mcmartin@Nightstar-10827.dsl.pltn13.pacbell.net] has joined #code
07:43 mode/#code [+o McMartin] by ChanServ
07:53 Chalcedon is now known as ChalcyThesis
08:26 ReivOut is now known as Reiver
08:46 ChalcyThesis [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Quit: ]
09:02 You're now known as TheWatcher
09:33 Mahal is now known as MahalBed
10:11 Reiver is now known as ReivZzz
10:13 GeekSoldier [IceChat7@Nightstar-4761.pools.arcor-ip.net] has joined #code
10:17 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
10:17 mode/#code [+o Chalcedon] by ChanServ
10:26 ReivZzz is now known as ReivSLEP
10:54 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
10:54 mode/#code [+o Chalcy] by ChanServ
10:55 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
10:56 Chalcy is now known as Chalcedon
11:04 GeekSoldier [IceChat7@Nightstar-4761.pools.arcor-ip.net] has left #code []
12:00 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Quit: ]
13:35 Vornicus is now known as Vornicus-Latens
15:54 Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has joined #Code
17:08 You're now known as TheWatcher[afk]
17:24 AnnoDomini [~farkoff@Nightstar-29470.neoplus.adsl.tpnet.pl] has quit [Killed (NickServ (GHOST command used by AbuDhabi))]
17:24 AnnoDomini [~farkoff@Nightstar-29230.neoplus.adsl.tpnet.pl] has joined #Code
17:32 ReivSLEP is now known as Reiver
17:42 Reiver is now known as ReivWork
18:02 MahalBed is now known as Mahal
18:24 Mahal is now known as MahalWork
18:27 You're now known as TheWatcher
20:28 MyCatSleeps is now known as MyCatVerbs
21:13 MyCatVerbs is now known as MyCatSwimSwimHungry
21:14 AnnoDomini is now known as Rudy
21:25 EvilDarkLord [althalas@Nightstar-15301.a88-115-211-62.elisa-laajakaista.fi] has quit [Ping Timeout]
21:38 EvilDarkLord [althalas@Nightstar-15301.a88-115-211-62.elisa-laajakaista.fi] has joined #code
22:11 Rudy is now known as Lamar
22:18 Lamar is now known as Rudy
22:21 You're now known as TheWatcher[T-2]
22:23 You're now known as TheWatcher[zZzZ]
22:26 Rudy is now known as AnnoDomini
22:45 Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has quit [Quit: Jouets de Dieu, jouets de jouets, les jouets de me, naĆ®tre Clair enfant voire.]
22:57 Syloq [Syloq@NetAdmin.Nightstar.Net] has joined #code
23:57 AnnoDomini [~farkoff@Nightstar-29230.neoplus.adsl.tpnet.pl] has quit [Quit: Juffo-Wup is a *candle*. It is filled with many *candy bars*.]
--- Log closed Tue Jan 16 00:00:50 2007
code logs -> 2007 -> Mon, 15 Jan 2007< code.20070114.log - code.20070116.log >