Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Let's make a game, /prog/

Name: Anonymous 2011-12-30 8:36

In C++ of course. I'll start with a class definition for our character.


#include <string>
#include "GIANT_LIST_OF_STL_HEADERS.hh"
#include "Typedefs_For_Shit_Liek_u8.hh"

namespace RPG {
        class Character {
        protected:
                u8 Str;
                u8 Dex;
                u8 Con;
                u8 Int;
                u8 Wis;
                u8 Cha;
                // Rest of class and RPG left intentionally undefined
                // Because Sepples is not Ruby and can't define the same class twice

Name: Anonymous 2012-01-01 2:26

>>16

-pedantic means that the code will only compile if it only uses ansi standards. Any compiler specific shit will generate an error. Although the above code does use headers that are assumed to be in the same directory as the RPG code, but were not written out of how unnecessary they were, the code would compile with -pedantic because it does not use any non-standard C++ features.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List