Thrive Game Development

Development of the evolution game Thrive.
 
HomeHome  PortalPortal  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  
Welcome new and returning members!
Sign up and introduce yourself. ADMIN knows your ASL.
If you're new, read around a bit before you post: the odds are we've already covered your suggestion.
We are working with a relatively new theme, so visual bugs are being addressed.
ADMIN reminds you that the Devblog is REQUIRED reading.
Currently: The Microbe stage environment is taking shape.
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
READ BEFORE POSTING
FAQs Wiki OE CC Thrive
Search
 
 

Display results as :
 
Rechercher Advanced Search
Statistics
We have 864 registered users
The newest registered user is Atrox_Somnium

Our users have posted a total of 22977 messages in 1107 subjects
Who is online?
In total there are 9 users online :: 4 Registered, 0 Hidden and 5 Guests :: 1 Bot

Atrox_Somnium, NickTheNick, Seregon, ~sciocont

Most users ever online was 443 on Sun Mar 17, 2013 4:41 pm
Updated Research Web
Wed May 08, 2013 5:20 pm by NickTheNick
Okay guys, here is my first Devblog to fulfill my responsibility as Strategy Team lead.

Finally I have procured some work to show for my efforts in conceptualizing the Strategy Mode. The Research Web is a pivotal component of post-sapience gameplay, as it is what drives your species forwards from the Awakening stage to their final steps into Ascension. Through a graphing program, I have managed …

[ Full reading ]
Comments: 5
Keywords
organism concept music Thrive Gameplay creature editor planet evolution underwater tech microbe game cell research tree Devblog stage video prototype space date progress auto biomes wiki
Latest topics
» New guy here
by Atrox_Somnium Today at 6:13 pm

» Building Microbe Stage
by ~sciocont Today at 6:03 pm

» Implementing Underwater Civilizations
by ~sciocont Today at 5:52 pm

» Strategy Mode Discussion
by NickTheNick Today at 5:24 pm

» Population dynamics
by ~sciocont Today at 5:04 pm

» Miscellaneous Bugs And Questions That Don't Deserve Their Own Thread Thread
by ~sciocont Today at 4:26 pm

» im new too!
by Daniferrito Today at 3:51 pm

» I would like to introduce myself - AlienSensei
by Jiko Today at 3:43 pm

» Hello to all sentient creatures!
by Jiko Today at 3:23 pm

» Hello everyone :D
by Mysterious_Calligrapher Today at 3:09 pm

» Revamping the Forum
by Nimbal Today at 10:37 am

» Art Team: We Need You!
by Tritium Today at 4:37 am

» The new guy number 9999
by Daniferrito Yesterday at 7:50 pm

» Organ Design
by scorpion268 Yesterday at 8:31 am

» Im New and wanting to help
by Mysterious_Calligrapher Yesterday at 8:04 am

» Function Part Discussion
by Daniferrito Tue May 21, 2013 11:55 pm

» Revamping the Wiki
by NickTheNick Tue May 21, 2013 11:16 pm

» GamerXA - Organism Editor
by Daniferrito Tue May 21, 2013 8:23 pm

» Concept Art Thread
by untrustedlife Tue May 21, 2013 6:18 pm

» Another Idea: 'Over tech'
by WilliamstheJohn Tue May 21, 2013 1:28 am

Share | .
 

 Class Structure

View previous topic View next topic Go down 
AuthorMessage
roadkillguy
Experienced


Posts: 534
Reputation: 16
Join date: 2010-08-25
Age: 19
Location: Rhode Island

PostSubject: Class Structure   Mon Jun 25, 2012 2:01 pm

By Daniferrito: This no longer stands for our current code

Here's a class structure I was thinking of, that should take care of everything up through creature stage.

Code:

Resource
    WorldObject
        Organism
            Cell
            Creature
            Plant
        Particle
        Rock
        Organics
    Atmosphere
    Soil
    BodyOfLiquid


Where a Resource is a list of compounds, a WorldObject has a position, and an Organism has an eat() function.

Depending on the class, it might be useful to have a parallel definition class structure as follows.

Code:

ResourceDef
    WorldObjectDef
        OrganismDef
            CellDef
            CreatureDef
            PlantDef
        ParticleDef
        RockDef
    AtmosphereDef
    SoilDef
    BodyOfLiquidDef


All of these will store data for a particular species, etc. Each class will contain a reference (const Def &) to its particular definition class.

EDIT:I'm pretty sure this will only be useful for Organisms, Particles, and Rocks.

That's my idea, let me know if you have questions.


Last edited by roadkillguy on Mon Jun 25, 2012 6:37 pm; edited 1 time in total
Back to top Go down
View user profile
Gawayno
Newcomer


Posts: 22
Reputation: 0
Join date: 2012-06-23
Age: 20
Location: Chicago, IL

PostSubject: Re: Class Structure   Mon Jun 25, 2012 3:30 pm

So this is what the class structure in C++ looks like huh? We would use curly brackets and a specific term, such as string, int, etc in C#.
Thanks for this, I'm starting to understand C++ even more.
Back to top Go down
View user profile
~sciocont
Overall Team Lead


Posts: 3193
Reputation: 99
Join date: 2010-07-06

PostSubject: Re: Class Structure   Mon Jun 25, 2012 4:09 pm

This seems pretty thorough. What about waste products/carcasses? They could be part of an "Organics" class under WorldObject, and that would round off anything that I can think of. They're essential to the game, given that you have to eat dead things.

_________________
Remember our goals: simplicity, science, and playability. Keep them in mind always.
[OE]|[FAQ]|[Wiki]|[My Blog]
Back to top Go down
View user profile Online
roadkillguy
Experienced


Posts: 534
Reputation: 16
Join date: 2010-08-25
Age: 19
Location: Rhode Island

PostSubject: Re: Class Structure   Mon Jun 25, 2012 5:11 pm

Gawayno wrote:
So this is what the class structure in C++ looks like huh? We would use curly brackets and a specific term, such as string, int, etc in C#.
Thanks for this, I'm starting to understand C++ even more.


No. I used code tags to make sure the indentations were correct. That isn't c++ at all.

Legitimate c++ is this:

Creature.h
Code:
#ifndef CREATURE_H
#define CREATURE_H

class Creature : public Organism
{
    //stuff
  public:

    Creature(const CreatureDef & _def);
};

#endif


Creature.cpp
Code:
#include "Creature.h"

Creature::Creature(const CreatureDef & _def) : m_def(_def)
{
    //other stuff
}


~sciocont wrote:
This seems pretty thorough. What about waste products/carcasses? They could be part of an "Organics" class under WorldObject, and that would round off anything that I can think of. They're essential to the game, given that you have to eat dead things.


A dead animal is still an animal. If it doesn't behave any differently, it has no need to be a different class. (Its compounds will simply deteriorate)
Back to top Go down
View user profile
~sciocont
Overall Team Lead


Posts: 3193
Reputation: 99
Join date: 2010-07-06

PostSubject: Re: Class Structure   Mon Jun 25, 2012 5:31 pm

Ok, makes sense. Still there's waste products. I hate to bring up something that seems to inconsequential, but they do contain important nutrients, which coprophagous animals can benefit from.

_________________
Remember our goals: simplicity, science, and playability. Keep them in mind always.
[OE]|[FAQ]|[Wiki]|[My Blog]
Back to top Go down
View user profile Online
roadkillguy
Experienced


Posts: 534
Reputation: 16
Join date: 2010-08-25
Age: 19
Location: Rhode Island

PostSubject: Re: Class Structure   Mon Jun 25, 2012 6:29 pm

~sciocont wrote:
Ok, makes sense. Still there's waste products. I hate to bring up something that seems to inconsequential, but they do contain important nutrients, which coprophagous animals can benefit from.


Ahh yes of course. Adding to OP...
Back to top Go down
View user profile
 

Class Structure

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Structure
» Community Structure
» Structure of the MITI
» Structure Of Our Clan
» Ridgerealms coding- Structure Simulator

Permissions in this forum:You cannot reply to topics in this forum
Thrive Game Development :: Hard Development :: Programming-