| delorie.com/archives/browse.cgi | search |
| From: | " [iC]" <jan AT narvik DOT crosswinds DOT net> |
| Newsgroups: | comp.lang.c++,comp.os.msdos.djgpp,rec.games.programmer |
| Subject: | pointer to function ?? |
| Date: | Sun, 15 Feb 1998 22:16:28 +0100 |
| Organization: | Telenor Online Public Access |
| Lines: | 30 |
| Message-ID: | <6c7ltq$ms1$1@o.online.no> |
| NNTP-Posting-Host: | ti36a01-0040.dialup.online.no |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
ok, this might sound like a stupid question, but any way:
I have a class witch looks somthing like this :
class Man {
int x,y,z;
---------
void nextthink();
}
what I need is to be able to do somthing like :
nextthink() = run();
or
nextthink() = attack();
later on in the game...
any ideas ?
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |