Hello and welcome to the Webmasters Forums!. This is the best place to get webmasters resources for free. Get $2 for free today, read more - Make your payment today. Download premium and professional templates for free. Get free web hosting without ads, read more. You can get lot more by simply join with this forum. To gain full access to the forums you must sign up for a free account.


Post Reply  Post Thread 

C++ battle simulator

Post Bank
Posting Manager
******

Posts: 995
Group: Forum Team
Joined: Sep 2006
Status: Online
Make money from now. You can make money just for posting on this forum. Every discussions on this community gives you more money. $2 minimum payout. So get your payment today, SignIn with this forum.

Signin to Remove this Post

godkillah
Senior Member
****


Posts: 261
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 3
Points: 183 (Donate)
Post: #1

C++ battle simulator


I've been writing hours on this :O
pretty long i guess,
anyways its a small program that simulates a battle, you define the levels etc.
its written in C++

http://files.filefront.com/Battle+Simulato...;/fileinfo.html

Rate & Comment


01-10-2007 02:06 AM
Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,172
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4373 (Donate)
Post: #2

RE: C++ battle simulator


Is that a game written in C++??

If so, that is a very good job.


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
01-10-2007 11:52 AM
Find all posts by this user Quote this message in a reply
godkillah
Senior Member
****


Posts: 261
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 3
Points: 183 (Donate)
Post: #3

RE: C++ battle simulator


yes C++ Smile
thanks

a friend of me is a programmer and he motivated me to learn it Big Grin


01-10-2007 02:49 PM
Find all posts by this user Quote this message in a reply
Cedik
Moderator
*****


Posts: 424
Group: Moderators
Joined: Aug 2007
Status: Away
Reputation: 2
Points: 575 (Donate)
Post: #4

RE: C++ battle simulator


I know some C++ too, but not that much. I guess you used Object Oriented Programming, right?
I find it hard to believe that it can be done only with functions and not classes, even though it's not impossible.
Did you know C++ for a long time?


MyBB.ro|Extra.animezup.com|Picture with me ^^|Animezup.com|Forum.animezup.com|Manga-anime.ro|My blog^^
01-10-2007 04:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,172
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4373 (Donate)
Post: #5

Cool Tutorial about Object Oriented Programming and Games


Cedik Wrote:
I find it hard to believe that it can be done only with functions and not classes, even though it's not impossible.


Objects programming comes very handy when the program relates to the real world. Thats why games are always generated with OOPS concept.

Consider an object "Box". It have properties like length, breadth, height.

By giving specific values to the "Box" properties, you can make the "Box" to different shapes like Cube, Plain (height=0), Piller, ect...

The same concept is applied on Games. For example, a single object "Car" can be used for many cars used on the game by changing its properties.


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
01-10-2007 04:13 PM
Find all posts by this user Quote this message in a reply
Cedik
Moderator
*****


Posts: 424
Group: Moderators
Joined: Aug 2007
Status: Away
Reputation: 2
Points: 575 (Donate)
Post: #6

RE: C++ battle simulator


It's true but in theory you can do that only by using functions too, but it would be way more complicated. You might try to use functions as classes in a simpler game, with a function that will create a "Box" object using the parameters that you are giving in the main function or wherever you call the function but it's possibilities are limited. This gets harder and harder to accomplish as the game gets more complex. Functions are better for other sorts of programs.


MyBB.ro|Extra.animezup.com|Picture with me ^^|Animezup.com|Forum.animezup.com|Manga-anime.ro|My blog^^
01-10-2007 04:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,172
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4373 (Donate)
Post: #7

RE: C++ battle simulator


Main concept of Object Oriented Programming Systems:

  • Data Abstraction
  • Data Encapsulation
  • Inheritance
  • Polymorphisms
  • Modularity

This concepts are necessary for many systems rather than Games. Even this forum platform is also build under oops concept. That helps you to add new features by inheriting other features and just adding little more with it, rather than making a full featured function from the beginning.


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
01-10-2007 04:51 PM
Find all posts by this user Quote this message in a reply
godkillah
Senior Member
****


Posts: 261
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 3
Points: 183 (Donate)
Post: #8

RE: C++ battle simulator


I've started learning C++ some months ago, after that i had a period of not using it and i concentrated on scripting

the battle simulator has functions for every part and further some if statements and variables.
pretty simple


02-10-2007 12:50 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:

Forum Jump:

Sign In to Remove Ads

Download 1000's of web templates. Unlimited access!
World's Best Web Hosting
Website of the Month

Create-a-Page for Free
SOTM June 2008


Accepting Submissions
for July 2008
Resources

Recommended Sites:



Visit our Sponsors!

Current time: 20-08-2008, 06:04 PM


Copyright © 2002-2008 MyBB Group
Powered By MyBB