|
|
 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
|
Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum) |

07-12-2004, 08:43 AM
|
Hill Giant
|
|
Join Date: Jul 2004
Location: In my basement
Posts: 131
|
|
|

08-28-2004, 06:56 AM
|
Sarnak
|
|
Join Date: May 2004
Posts: 58
|
|
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
|

08-30-2004, 06:21 PM
|
Sarnak
|
|
Join Date: May 2004
Posts: 58
|
|
so i guess thats a no? a response would have been nice =/
|

08-31-2004, 03:42 AM
|
 |
Demi-God
|
|
Join Date: Mar 2003
Location: USA
Posts: 1,067
|
|
I think its more a case of there's a lot going on and it takes a while to notice.
__________________
Maybe I should try making one of these servers...
|
 |
|
 |

09-05-2004, 03:40 PM
|
Hill Giant
|
|
Join Date: Jul 2004
Posts: 206
|
|
// 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
|
 |
|
 |

09-05-2004, 03:41 PM
|
Hill Giant
|
|
Join Date: Jul 2004
Posts: 206
|
|
Thats some code for a game im making 
|

09-05-2004, 03:46 PM
|
Hill Giant
|
|
Join Date: May 2004
Posts: 238
|
|
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.
__________________
Ascending Dawn Server Op
Coder/Quester/Mysql
|

09-05-2004, 03:58 PM
|
Demi-God
|
|
Join Date: May 2004
Posts: 1,177
|
|
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 =(
|

09-06-2004, 03:05 AM
|
Fire Beetle
|
|
Join Date: Jan 2005
Posts: 15
|
|
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!
|

09-30-2004, 08:10 AM
|
Demi-God
|
|
Join Date: May 2004
Posts: 1,177
|
|
bah NM. somebody must have updated something. --- ignore
|

11-07-2004, 11:22 AM
|
Fire Beetle
|
|
Join Date: Nov 2004
Posts: 6
|
|
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;
} 
__________________
-Kumadar-
|

11-07-2004, 11:42 AM
|
Demi-God
|
|
Join Date: May 2004
Posts: 1,177
|
|
/bow down to the c++ genius :lol:
|

11-07-2004, 11:53 AM
|
Demi-God
|
|
Join Date: Mar 2004
Posts: 1,066
|
|
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
__________________
<idleRPG> Rogean ate a plate of discounted, day-old sushi. This terrible calamity has slowed them 0 days, 15:13:51 from level 48.
|

11-07-2004, 01:38 PM
|
Demi-God
|
|
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
|
|
Can the text file be in a typical INI type style?
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
|

11-07-2004, 02:12 PM
|
Demi-God
|
|
Join Date: Mar 2004
Posts: 1,066
|
|
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
__________________
<idleRPG> Rogean ate a plate of discounted, day-old sushi. This terrible calamity has slowed them 0 days, 15:13:51 from level 48.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 07:56 AM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |