|
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)
|
C++ battle simulator
|
|
| 01-10-2007 02:06 AM |
|
|
ivenms
Administrator
      
Posts: 2,172
Group: Administrators
Joined: Sep 2006
Status:
Offline
Reputation: 14
Points: 4373 (Donate)
|
|
| 01-10-2007 11:52 AM |
|
|
godkillah
Senior Member
   
Posts: 261
Group: Registered
Joined: Sep 2007
Status:
Offline
Reputation: 3
Points: 183 (Donate)
|
RE: C++ battle simulator
yes C++ 
thanks
a friend of me is a programmer and he motivated me to learn it
|
|
| 01-10-2007 02:49 PM |
|
|
Cedik
Moderator
    
Posts: 424
Group: Moderators
Joined: Aug 2007
Status:
Away
Reputation: 2
Points: 575 (Donate)
|
|
| 01-10-2007 04:06 PM |
|
|
ivenms
Administrator
      
Posts: 2,172
Group: Administrators
Joined: Sep 2006
Status:
Offline
Reputation: 14
Points: 4373 (Donate)
|
Tutorial about Object Oriented Programming and Games
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 |
|
|
Cedik
Moderator
    
Posts: 424
Group: Moderators
Joined: Aug 2007
Status:
Away
Reputation: 2
Points: 575 (Donate)
|
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 |
|
|
ivenms
Administrator
      
Posts: 2,172
Group: Administrators
Joined: Sep 2006
Status:
Offline
Reputation: 14
Points: 4373 (Donate)
|
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 |
|
|
godkillah
Senior Member
   
Posts: 261
Group: Registered
Joined: Sep 2007
Status:
Offline
Reputation: 3
Points: 183 (Donate)
|
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 |
|
|