Jump to content
  • Advertisement

markrodgers11

Member
  • Content Count

    29
  • Joined

  • Last visited

Community Reputation

149 Neutral

About markrodgers11

  • Rank
    Member
  1. markrodgers11

    Quake

    Damn, well that's still pretty cool. I wouldn't really use it for commercial anyways, just was curious if I could develop on their engine w/o paying for a license, thanks guys!
  2. markrodgers11

    Quake

    I came across this picture online and was curious how all these games have been derived from Quake? Is there some sort of public license-free source code of quake that we can use to develop from? If so does anyone know if its even worth it and if so where you could acquire this source? Not to mention, if they are all available, which would be best to develop from? Quake 1,2,or 3 src? [spoiler] [/spoiler]
  3. markrodgers11

    directx10 sdk download?

    Well don't I feel stupid... thanks man! So just double checking, if I download DirectX SDK, I will be able to develop in C++ using DX10?
  4. markrodgers11

    directx10 sdk download?

    I'm having issues finding directx 10 sdk.. this is the link i found but im not sure whether it is dx10 or dx11.. I'm looking for 10. EDIT: Maybe this is dx10? http://www.microsoft.com/en-us/download/details.aspx?id=8109
  5. markrodgers11

    Struct vs Classes?

    Ahh I see. but what frob says brings up another question for me about structs/classes. so does this mean structs can not hold functions or is it just preferred to put functions in classes and plain data in structs?
  6. markrodgers11

    Struct vs Classes?

    getting back on topic of C++, so I suppose it is just personal preference since either can be used for same thing? Is their any that is more preferred by advanced C++ programmers, to get me into good habits?
  7. markrodgers11

    Struct vs Classes?

    What is the difference between structs and classes in C++?
  8. I am working on a text-based RPG and I defined a vector in my game.cpp file and now I am trying to access it from my inputSystem.cpp file, it shows that it is unknown? I am wondering how I can access this vector from this other .cpp files? -Thanks
  9. markrodgers11

    classes

    yeah thats what i've heard and tahts why i wanna start learning how to use classes ;p ive been learning about vectors recently and those are pretty cool xP
  10. markrodgers11

    vector compile error?

    extern vector<int> pRooms(10,0); is that possible? I tried that ^^ and it still has a compile error. 1>------ Build started: Project: textRPG, Configuration: Debug Win32 ------ 1> game.cpp 1> Generating Code... 1> Compiling... 1> rooms.cpp 1> init.cpp 1> Generating Code... 1>init.obj : error LNK2005: "class std::vector<int,class std::allocator<int> > pRooms" (?pRooms@@3V?$vector@HV?$allocator@H@std@@@std@@A) already defined in game.obj 1>init.obj : error LNK2005: "int nRooms" (?nRooms@@3HA) already defined in game.obj 1>rooms.obj : error LNK2005: "class std::vector<int,class std::allocator<int> > pRooms" (?pRooms@@3V?$vector@HV?$allocator@H@std@@@std@@A) already defined in game.obj 1>rooms.obj : error LNK2005: "int nRooms" (?nRooms@@3HA) already defined in game.obj 1>H:\C++ extRPG\Debug extRPG.exe : fatal error LNK1169: one or more multiply defined symbols found ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  11. markrodgers11

    vector compile error?

    I'm trying to build my 2nd text based RPG but this time I wanna make it more flexible and have the code split up and everything. I will post my source code below and my compile error: Source Code: init.cpp #include <iostream> #include "game.h" #include "rooms.h" void main() { intro(); } game.cpp #include <iostream> #include <string> #include <vector> #include "rooms.h" using namespace std; void intro() { pRooms[9] = 10; checkRoom(); system("pause"); } game.h #include <string> #include <vector> using namespace std; // Prototypes // void intro(); rooms.cpp #include <iostream> #include <vector> #include "rooms.h" using namespace std; int checkRoom() { int cRoom = 0; int counter = 0; int x = 0; if (counter <= nRooms) { if (pRooms[x] = 1) { x = cRoom; cout << "cRoom = " << cRoom; } else { ++counter; ++x; cout << "Adding 1\nAdding 1 to x"; } } return cRoom; } rooms.h #include <iostream> #include <vector> using namespace std; // Prototypes // int checkRoom(); // Vectors // vector<int> pRooms(10,0); // Integers // int nRooms = pRooms.size(); Build Log 1>------ Build started: Project: textRPG, Configuration: Debug Win32 ------ 1> game.cpp 1> Generating Code... 1> Skipping... (no relevant changes detected) 1> rooms.cpp 1> init.cpp 1>init.obj : error LNK2005: "class std::vector<int,class std::allocator<int> > pRooms" (?pRooms@@3V?$vector@HV?$allocator@H@std@@@std@@A) already defined in game.obj 1>init.obj : error LNK2005: "int nRooms" (?nRooms@@3HA) already defined in game.obj 1>rooms.obj : error LNK2005: "class std::vector<int,class std::allocator<int> > pRooms" (?pRooms@@3V?$vector@HV?$allocator@H@std@@@std@@A) already defined in game.obj 1>rooms.obj : error LNK2005: "int nRooms" (?nRooms@@3HA) already defined in game.obj 1>H:\C++ extRPG\Debug extRPG.exe : fatal error LNK1169: one or more multiply defined symbols found ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  12. markrodgers11

    classes

    okay thanks guys!
  13. markrodgers11

    classes

    okay so recently ive been reading a book on C++ and i've learned quite a bit and i just wanted to see what it was like so i took a look at the cryengine 3 source code that they release with the SDK. and suprisingly i could KIND OF understand it xP although at the same time alot of the stuff they made was custom so there was a lot of things i was confused about but i realized when i look at source code everyone uses classes, but for some reason the book doesnt cover classes to towards the end of the book. So I was just wondering if someone could explain how classes work in C++ and how to use them and the syntax? Basically everything i should know about classes ;p
  14. markrodgers11

    First "game" in C++

    wow thanks for the release in the source, once I find the time I will definitely setup a project and paste all your code it, study it, modify it to learn new things, etc! Love looking at other people's source code, I find it a good way to study it, unless you have no idea what any of it is then its just like trying to read Chinese ;p
  15. markrodgers11

    string::size_type

    ohokay well thanks for the useful responses, i read closer in my book and it was explained I just happened to miss it on the first read through of that section Thanks for helping out anyways!
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!