32 |
#include "GameWidget.h" |
#include "GameWidget.h" |
33 |
#include "JoinFrame.h" |
#include "JoinFrame.h" |
34 |
|
|
35 |
#include "PlayerNameController.h" |
#include "PlayerName.h" |
36 |
|
|
37 |
@interface JoinController : NSObject |
@interface JoinController : NSObject |
38 |
{ |
{ |
94 |
position: NSMakePoint (60, 650)]; |
position: NSMakePoint (60, 650)]; |
95 |
|
|
96 |
UiButton *joinButton |
UiButton *joinButton |
97 |
= [[UiButton alloc] initWithText: @"join game" |
= [[UiButton alloc] initWithText: @"Join game" |
98 |
position: NSMakePoint (200.0f, 200.0f)]; |
position: NSMakePoint (200.0f, 200.0f)]; |
99 |
|
|
100 |
UiTextField *playerName |
PlayerName *playerName |
101 |
= [[UiTextField alloc] |
= [[PlayerName alloc] |
102 |
initWithText: [NSString stringWithCString: "nom joueur"] |
initWithText: [NSMutableString stringWithCString: "text"] |
103 |
position: NSMakePoint (600.0f, 200.0f) |
position: NSMakePoint (600.0f, 200.0f) |
104 |
height: 18]; |
height: 18]; |
|
|
|
|
PlayerNameController *playerNameController |
|
|
= [[PlayerNameController alloc] initWithPlayerName: playerName]; |
|
105 |
|
|
106 |
[joinButton setDelegate: controller]; |
[joinButton setDelegate: controller]; |
|
[playerName setDelegate: playerNameController]; |
|
107 |
|
|
108 |
[self addWidget: logo]; |
[self addWidget: logo]; |
109 |
[self addWidget: joinButton]; |
[self addWidget: joinButton]; |