Remember, you MUST register to post on the Fiesta Fan forums. It's completely free to join. Just click HERE to become a member for free!


REGISTER NOW TO REMOVE ALL ADS ON THIS FORUM!

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-18-2011, 11:40 PM   #1
Phantom Badger
FF's Official Weirdo
 
Phantom Badger's Avatar
 

In-Game Name: [BlackDragonEX - Paladin]
Current Level: [BlackDragonEX - 73]
Server: Teva
Posts: 1,338
Phantom Badger has a spectacular aura aboutPhantom Badger has a spectacular aura aboutPhantom Badger has a spectacular aura about
Send a message via MSN to Phantom Badger
C++ Knowledge

Afternoon FF, I just wanted to make a little callout to see if anyone on here had knowledge of the programming language C++. Long story short I'm about to start a project using this language and knowing that I could contact a member of the forums if I got particularly stumped would help.
So... Anyone know it ?
Phantom Badger is offline   Reply With Quote
Old 11-19-2011, 02:10 AM   #2
Entropy
Administrator
I'm trying to learn C++ right now too. I've written a few C console programs years ago, and been doing lots of PHP lately. C++ seems... hard.

Are you doing something with a windows GUI or just a console application?
Entropy is offline   Reply With Quote
Old 11-19-2011, 03:09 AM   #3
a.L
A to the R to the K
 
a.L's Avatar
 

Posts: 3,351
a.L has much to be proud ofa.L has much to be proud ofa.L has much to be proud ofa.L has much to be proud ofa.L has much to be proud ofa.L has much to be proud ofa.L has much to be proud ofa.L has much to be proud ofa.L has much to be proud ofa.L has much to be proud of
Aw, I learned a bit of C, not C++ D:
a.L is offline   Reply With Quote
Old 11-19-2011, 11:52 AM   #4
Phantom Badger
FF's Official Weirdo
 
Phantom Badger's Avatar
 

In-Game Name: [BlackDragonEX - Paladin]
Current Level: [BlackDragonEX - 73]
Server: Teva
Posts: 1,338
Phantom Badger has a spectacular aura aboutPhantom Badger has a spectacular aura aboutPhantom Badger has a spectacular aura about
Send a message via MSN to Phantom Badger
Originally Posted by Entropy View Post
I'm trying to learn C++ right now too. I've written a few C console programs years ago, and been doing lots of PHP lately. C++ seems... hard.

Are you doing something with a windows GUI or just a console application?
Its going to be a console application. Think something similar to Zork, if you've ever played that
Phantom Badger is offline   Reply With Quote
Old 11-19-2011, 12:39 PM   #5
Vasu
Malingerer
 
Vasu's Avatar
 
Tournaments Won: 3

In-Game Name: None
Current Level: None
Server: None
Posts: 1,899
Vasu is just really niceVasu is just really niceVasu is just really niceVasu is just really niceVasu is just really nice
You can count on me. Except with graphics stuff.
__________________


Credits to Loveless for the great signature!
We rode on the winds of the rising storm
We ran to the sounds of thunder
We danced among the lightning bolts
And tore the world asunder

Vasu is offline   Reply With Quote
Old 11-19-2011, 04:19 PM   #6
Phantom Badger
FF's Official Weirdo
 
Phantom Badger's Avatar
 

In-Game Name: [BlackDragonEX - Paladin]
Current Level: [BlackDragonEX - 73]
Server: Teva
Posts: 1,338
Phantom Badger has a spectacular aura aboutPhantom Badger has a spectacular aura aboutPhantom Badger has a spectacular aura about
Send a message via MSN to Phantom Badger
Good to hear Vasu As I said there's no graphics involved, I just need someone I can ask questions if I get stuck with a bit of code.
Phantom Badger is offline   Reply With Quote
Old 11-19-2011, 06:24 PM   #7
Vasu
Malingerer
 
Vasu's Avatar
 
Tournaments Won: 3

In-Game Name: None
Current Level: None
Server: None
Posts: 1,899
Vasu is just really niceVasu is just really niceVasu is just really niceVasu is just really niceVasu is just really nice
Oh, you could've mentioned zork was an interactive fiction. Yeah sure, I can help. C++ is not too much harder than C. If you grasp the basic differences between the languages, then they might as well be the same, however crazy that may sound.
__________________


Credits to Loveless for the great signature!
We rode on the winds of the rising storm
We ran to the sounds of thunder
We danced among the lightning bolts
And tore the world asunder

Vasu is offline   Reply With Quote
Old 11-20-2011, 09:44 AM   #8
Sparkeh
Nothing here, move along.
 

Posts: 1,151
Sparkeh is on a distinguished road
Send a message via MSN to Sparkeh
Good luck, everyone. 8)
Sparkeh is offline   Reply With Quote
Old 11-20-2011, 08:24 PM   #9
Phantom Badger
FF's Official Weirdo
 
Phantom Badger's Avatar
 

In-Game Name: [BlackDragonEX - Paladin]
Current Level: [BlackDragonEX - 73]
Server: Teva
Posts: 1,338
Phantom Badger has a spectacular aura aboutPhantom Badger has a spectacular aura aboutPhantom Badger has a spectacular aura about
Send a message via MSN to Phantom Badger
Bleh, my original plan was to have locations linked to a series of X, Y and Z co-ordinates and then through commands issued by the user the player could move through a grid format with if clauses. However this means there are no boundaries, so I've had to scrap it all and now I'm researching into Arrays and sub strings to get it to work.
Phantom Badger is offline   Reply With Quote
Old 11-20-2011, 10:38 PM   #10
Vasu
Malingerer
 
Vasu's Avatar
 
Tournaments Won: 3

In-Game Name: None
Current Level: None
Server: None
Posts: 1,899
Vasu is just really niceVasu is just really niceVasu is just really niceVasu is just really niceVasu is just really nice
Since we're not going to be displaying any grids anyway, you can use simple location IDs. I DL'ed and played a bit of Zork, and there is not much scope for movement within a location, so we can have it similar to that. You can have various states based on the location ID. Each location can be the object of a class, with the following properties:
  • List of items that can be taken. (We can use actual strings to describe the items rather than IDs since there may be too many).
  • A string (or strings) that holds the description of the location. This string must have well defined delimiters within itself. In Zork, the description of a location would change based on whether or not certain items were still there, so we can use separate strings like "General description of the location", "Description of item 1", "Description of item 2" etc, and just concat all of them or some of them depending on the current state of the location.
  • Accessible areas and their directions.
  • Usable items, interactive characters if any.

Basically the most important thing to do in OOP is to draw out a list of the various types of objects that you may use within the game such as "Location", "Item", "NPC".

Then when it comes to taking the input, you'll need to really be able to work with strings and separate them out and stuff. C and C++ are really 2 of the worst languages for handling strings, so you'll definitely have your work cut out for you. Basically you'll need to form an exhaustive list of verbs, nouns and conjunctions if you're using those which will be checked against each time they type something in. Form a structure for the input. In Zork it seems to be <verb> <noun> or <verb> <conjunction> <noun>.

I realise you may already have a lot of this planned out, I'm just trying to show how I would approach the problem.
__________________


Credits to Loveless for the great signature!
We rode on the winds of the rising storm
We ran to the sounds of thunder
We danced among the lightning bolts
And tore the world asunder

Vasu is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The knowledge that you ARE going to hell. Phantom Badger M O S 1 11-02-2009 07:06 AM
Test your knowledge of Fiesta's operation Icy Fiesta General 40 09-04-2008 02:50 AM
Knowledge Blaaaaaaaah M O S 10 05-22-2008 08:32 AM
Knowledge of a class Ralath All the Rage 14 03-18-2008 07:03 PM


All times are GMT. The time now is 05:04 PM.
Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.