.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   OT: Stupid c++ (Roguelike development) (http://forum.shrapnelgames.com/showthread.php?t=29767)

narf poit chez BOOM August 8th, 2006 06:27 PM

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;



narf poit chez BOOM August 8th, 2006 07:46 PM

Re: OT: Stupid c++
 
*Whaps forehead*

Must remember...A class is *Not* a variable. Must declare class as variable first.

Well, at least I changed the error...Er, never mind. Putting '&' in front of what I wanted to convert fixed it. And now it all works. Or seems to. Can never tell with those programs. *Darting eyes* Sneaky programs.

narf poit chez BOOM August 8th, 2006 08:35 PM

Re: OT: Stupid c++
 
I'm getting aa '[Linker error] undefined reference to `vtable for Character' '
Ok, so it doesn't like virtual functions without a '{};', even if they are void.

narf poit chez BOOM August 8th, 2006 10:25 PM

Re: OT: Stupid c++
 
Got a dungeon, got doors that open and close, got an intermitent glitch in the dungeon algorithm...

Would anybody know how to turn on Dev c++'s Debug mode? I'm getting nowhere with 'F8'.

Beorne August 9th, 2006 06:21 AM

Re: OT: Stupid c++
 
Ehm ...

Why don't use Phython?
Or, at least, Java?
Or, if you love M$, C#?

I programmed 10 years in C and C++ and it's an headhache.

Xrati August 9th, 2006 09:57 AM

Re: OT: Stupid c++
 
This explains all the nomenclature in your posts! http://forum.shrapnelgames.com/images/smilies/laugh.gif

dogscoff August 9th, 2006 10:29 AM

Re: OT: Stupid c++
 
Don't suppose it happens to be an SE4-themed roguelike does it?

The Phong wields a hand cannon --more--
The Phong fires at you --more--
You die


That would be cool...

Ed Kolis August 9th, 2006 11:16 AM

Re: OT: Stupid c++
 
Yeah, I wanted to do an SE module for Dungeon Odyssey once, but it never got anywhere... DO seemed a bit tricky to mod, and I couldn't figure out where to start with the concept anyway http://forum.shrapnelgames.com/image...ies/tongue.gif

narf poit chez BOOM August 9th, 2006 12:38 PM

Re: OT: Stupid c++
 
Python is interpreted, java is interpreted, I have an aversion to M$-only projects.

No, just a simple dungeon-based one.

I would perfer this thread not go off-topic before I get an answer.

narf poit chez BOOM August 9th, 2006 02:03 PM

Re: OT: Stupid c++
 
What's a good, simple way to get the console to ignore the mouse? I'm using this: http://www.adrianxw.dk/SoftwareSite/index.html for events.


All times are GMT -4. The time now is 07:12 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.