Re: OT: Stupid c++
Erm, the pointer is one of the variables in the base class. I'm restarting the roguelike project, only mucho simpler.
The relavent lines:
Quote:
class GR {
BlankSquare MapBlank; WallSquare MapWall; FloorSquare MapFloor;
};
class MapSquare {
public:
BlankSquare * Type;
};
MapSquare Map [81][41];
Map [t][t2].Type = GR.MapWall;
|
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|