.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #11  
Old August 8th, 2006, 06:27 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default 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.
Reply With Quote
  #12  
Old August 8th, 2006, 07:46 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default 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.
__________________
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.
Reply With Quote
  #13  
Old August 8th, 2006, 08:35 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default 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.
__________________
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.
Reply With Quote
  #14  
Old August 8th, 2006, 10:25 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default 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'.
__________________
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.
Reply With Quote
  #15  
Old August 9th, 2006, 06:21 AM
Beorne's Avatar

Beorne Beorne is offline
Sergeant
 
Join Date: Apr 2004
Location: Forlì, Italy
Posts: 322
Thanks: 15
Thanked 0 Times in 0 Posts
Beorne is on a distinguished road
Default 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.
Reply With Quote
  #16  
Old August 9th, 2006, 09:57 AM
Xrati's Avatar

Xrati Xrati is offline
First Lieutenant
 
Join Date: May 2005
Location: Outter Glazbox
Posts: 760
Thanks: 12
Thanked 4 Times in 4 Posts
Xrati is on a distinguished road
Default Re: OT: Stupid c++

This explains all the nomenclature in your posts!
Reply With Quote
  #17  
Old August 9th, 2006, 10:29 AM
dogscoff's Avatar

dogscoff dogscoff is offline
General
 
Join Date: Mar 2001
Location: UK
Posts: 4,245
Thanks: 0
Thanked 0 Times in 0 Posts
dogscoff is on a distinguished road
Default 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...
Reply With Quote
  #18  
Old August 9th, 2006, 11:16 AM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default 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
__________________
The Ed draws near! What dost thou deaux?
Reply With Quote
  #19  
Old August 9th, 2006, 12:38 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default 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.
__________________
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.
Reply With Quote
  #20  
Old August 9th, 2006, 02:03 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default 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.
__________________
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.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 02:34 AM.


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