Here are some of the things I have done so far. Got a few more things I'm testing atm now.
http://www.eqemulator.net/forums/viewtopic.php?t=15862 and http://www.eqemulator.net/forums/viewtopic.php?t=15959 |
not the greatest yet but im learning slowly and if theres anything i can learn about the project through the other forum or if theres a large list of time consuming little things that need fixed, i want in!
http://www.eqemulator.net/forums/viewtopic.php?t=16398 |
so i guess thats a no? a response would have been nice =/
|
I think its more a case of there's a lot going on and it takes a while to notice.
|
// Purpose: messages travel both up and down the layers,
// message interface per layer per direction, // one concrete Facade per layer (implements 1 or 2 interfaces) // Singleton access to Facade objects #include using namespace std; class ChildOf3 { public: virtual void downMessage() = 0; }; class ParentOf2 { public: virtual void upMessage() = 0; }; class ChildOf2 { public: virtual void downMessage() = 0; }; class ParentOf1 { public: virtual void upMessage() = 0; }; class C : public ParentOf2 { public: void execute(); void upMessage(); }; class B : public ParentOf1, public ChildOf3 { public: void upMessage(); void downMessage(); }; class A : public ChildOf2 { public: void downMessage(); void execute(); }; class SC { // Singleton Collection public: static C& layer3() { return cObject; } static B& layer2() { return bObject; } static A& layer1() { return aObject; } private: static C cObject; static B bObject; static A aObject; }; C SC::cObject; B SC::bObject; A SC::aObject; void thirdParty( ChildOf2& obj1, ChildOf3& obj2, ParentOf2& obj3 ) { obj1.downMessage(); obj2.downMessage(); obj3.upMessage(); } void main( void ) { SC::layer3().execute(); SC::layer1().execute(); thirdParty( SC::layer1(), SC::layer2(), SC::layer3() ); } // C::execute // A::execute // A::downMessage // B::downMessage // B::upMessage // B::downMessage // A::downMessage // C::upMessage // A::downMessage // C::upMessage void C::execute() { cout |
Thats some code for a game im making :)
|
This code wont do anything, and if it does what the hell is it doing? Besides developers are looking for contributions that you've made to EQEmu theres nothing showing us that you didnt just copy that form somewhere. I know i'm not a developer just telling you what they will tell you.
|
Geez zkhava. i think i prolly already told you this before.
posting code is pointless unless it fixes or adds something to eqemu. nobody cares about a game you're making. And if they did, you'd be better posting it in offtopic not adding to here like you deserve junior dev or something. for all we know you prolly cut and paste that from some game code snippet site. It's nothing special =( |
Quote:
|
bah NM. somebody must have updated something. --- ignore
|
Junior Developer
#include <iostream.p>
using std; int main() { int a = 243; int b; int c; cout<<"what is the password?"; cin>>b; { if(b == a) cout<<"how did you find the password out?!"; } { if(b != a) cout<<"u should know the password "; } cin>>c; return 0; } :D |
/bow down to the c++ genius :lol:
|
Ok pop quiz, Kumadar.
Somebody has found out the password is 243. So now I don't want the password to be hard coded into the program anymore. I wish for it to read from a file in the same folder as the program named pwd.txt. Please post the modified program that will do this :P |
Can the text file be in a typical INI type style?
|
No, the contents of the pwd.txt file are just the password. Nothing else.
And I wanna see a submission from Kumadar, not you :P |
All times are GMT -4. The time now is 05:58 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.