[DGD]Overlapping functions?

Brandon Rush bcr124 at psu.edu
Mon Jul 2 12:50:28 CEST 2001


Heh, before anyone else goes into list withdrawal I'll ask what's probably a
pretty fundamental question so those helpful types have something they can
answer.

I've got a problem where I have a function named move() in both player.c and
object.c
I'm trying to call the "move" from object.c but since I'm using a player
object it's using player.c's move() function instead. The code's from a
command and looks something like

object ob = USERS_D->find_user(str)->query_player() ;
int result = ob->move(some various arguments here) ;

Anyone know of a way I could make it use object.c's move other than just
renaming player.c's function to another name? I was browsing examples and
thought something like ::move() might do the trick but it gave me some
errors. I'm running DGD 1.2 with Melville 0.9


Thanks,

Brandon Rush


List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list