EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=590)
-   -   Junior Developers (https://www.eqemulator.org/forums/showthread.php?t=13930)

Draupner 07-12-2004 08:43 AM

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

Branks 08-28-2004 06:56 AM

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

Branks 08-30-2004 06:21 PM

so i guess thats a no? a response would have been nice =/

Scorpious2k 08-31-2004 03:42 AM

I think its more a case of there's a lot going on and it takes a while to notice.

Zkhava 09-05-2004 03:40 PM

// 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

Zkhava 09-05-2004 03:41 PM

Thats some code for a game im making :)

monalin crusader 09-05-2004 03:46 PM

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.

sotonin 09-05-2004 03:58 PM

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 =(

Melwin 09-06-2004 03:05 AM

Quote:

Originally Posted by sotonin
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 =(

Let's leave it at that, or I'll start editting posts. There's a thread about this gentlemen, and it's been locked for a reason!

sotonin 09-30-2004 08:10 AM

bah NM. somebody must have updated something. --- ignore

-Kumadar- 11-07-2004 11:22 AM

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

sotonin 11-07-2004 11:42 AM

/bow down to the c++ genius :lol:

RangerDown 11-07-2004 11:53 AM

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

Cisyouc 11-07-2004 01:38 PM

Can the text file be in a typical INI type style?

RangerDown 11-07-2004 02:12 PM

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.