Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - m0refi4

Pages: [1]
1
Window / Maximize window and set minimum size?
« on: April 23, 2010, 03:12:02 pm »
Hello,


Well the title says it,

is there a way to maxzimize the window?

And is there a way to set a minimum size of the window?

Havent found anything bout this, so any help is appreciated :)

greets

2
Quote from: "nulloid"
Read the wiki. It says: "When creating your own project, make sure to put the cpGUI.h & cpGUI.cpp files in your project and #include „cpGUI.h“. " That's all you need. At least it worked for me ;)


Well Ive done the most stupid thing ever since I added all the source files and headers to my project and wondered why I'd get so many multiple definitions..

Works fine now, thanks ;p

3
Hm I somehow can't get cpGUI to run. I always get undefined references. Would be great if someone could help me out here  :?

4
Network / [SOLVED] Basic Question: Sending Data
« on: April 02, 2010, 04:08:08 pm »
Quote from: "Mindiell"
*break the rules !*


Done. hehe

Thanks again for the help

5
Network / [SOLVED] Basic Question: Sending Data
« on: April 01, 2010, 12:01:47 am »
Thank you very much for your help.

I understood how the packet was working I just didnt know which way I'm used to handle those packets for the client/server interaction :P

Everythings fine now =)

6
Network / [SOLVED] Basic Question: Sending Data
« on: March 30, 2010, 03:34:29 pm »
Thank you Mindiell for your reply!

I'm still kinda stuck at this point:
SFML uses 2 types of sending data between client and server.

Send  (const char *Data, std::size_t Size)
Send  (Packet  &PacketToSend)

I guess I'm supposed to use the one sending the Packet. (Does this even have something to do with the protocol? :P)

So I hope I got your point:
By creatig my own Packet I can send the server what he should do.

Some example:

Client side:
int what_to_do = 1;
//send the server a packet containing the what_to_do
Packet ToSend;
ToSend << what_to_do

Server side:
// get the packet
Packet recieved;
int what_to_do;
received >> what_to_do

if (what_to_do == 1)
{
   // do something...
}

Well I might be totally wrong. If so, is there any step-by-step tutorial out there since I havent found any by now.

Thanks in advance
greets

7
Network / [SOLVED] Basic Question: Sending Data
« on: March 30, 2010, 01:10:51 am »
Heya,

I've just found SFML and its great community. I'm pretty new to networkprogramming so I have some basic questions about servers and clients.

Well heres the problem I'm thinking of:

I'll give you an example:
My server contains following class:


Code: [Select]

class Player
{
   private:
   int level;
   
   public:
   int getLevel(); /returns the level
}


The server creates a player now.

Code: [Select]
Player player;

So, how can I call the getLevel() function with the client?

As I said I'm really new to this and I hope someone could help me a little out with this.

Greets

Pages: [1]
anything