//
// PlayViewController.h
// PhotoGame
//
// Created by Steve Ho on 6/29/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "PhotoGameAppDelegate.h"
#import "PhotoGameViewController.h"
#import "SessionManager.h"
#import "Player.h"
#define NEXT_PIC @"Next Pic"
#define PLAY_PIC @"Play Pic"
#define GO_VOTE @"Go Vote"
#define WAITINGX @"Waiting"
#define IMAGE_PREVIEW_SIZE CGSizeMake(320.0f,310.0f)
@interface PlayViewController : UIViewController <GamePlayDelegate, UIAlertViewDelegate> {
PhotoGameViewController *theParent;
SessionManager *sessionManager;
int playPhotoCounter;
UITextField *photoCaptionTextField;
UIButton *customeBtn1;
IBOutlet UILabel *scrollViewLabel;
IBOutlet UILabel *peerLabel;
IBOutlet UIImageView *seedPhoto;
IBOutlet UIImageView *unveilPhotoBig;
IBOutlet UIScrollView *scrollView;
IBOutlet UIImageView *previewPhoto;
IBOutlet UILabel *gamePlayLabel;
IBOutlet UIButton *startGameBtn;
IBOutlet UINavigationBar *navBar;
IBOutlet UIView *imageContainer;
UINavigationItem *navBarItem;
UIBarButtonItem *navBarBtnItem;
UIButton *playPhotoCheckMarkBtn;
//step 1: get seed photo
//step 2: select a matching photo and submit
//step 3: viewing play photos - when all have submitted, photos are shown one at a time, controlled by the current seeder
//step 4: vote
NSMutableArray *playPhotos; //for seeder to use only
NSMutableDictionary *players;
int gameStep;
int gameRound;
int unveiledPhotoCounter;
int unveilResponseCount; //for currentSeeder to keep track of responses
NSString *currentSeeder; //peerID of the round's seeder
NSURL *mySeedPhotoURL;
NSString *iVoteForPeerID;
NSMutableArray *alreadySeededPhotos;
UIButton *curSelectedPlayPhoto;
}
-(IBAction)newRoundBtnClicked;
-(void)playPhotoClicked:(id)sender;
-(void)submittedPhotoClicked:(id)sender;
-(void)iVoteForPhoto:(id)sender;
-(void)pickLocalSeedPhoto;
-(void)setupPlayPhotosView;
-(void)setupSubmittedPhotosView;
-(void)setupGame;
-(void)prepareNewRound;
-(void)navBarBtnItemClicked:(id)sender;
@property int unveilResponseCount;
@property int unveiledPhotoCounter;
@property int gameStep;
@property int gameRound;
@property (nonatomic, retain) IBOutlet UIView *imageContainer;
@property (nonatomic, retain) UIButton *playPhotoCheckMarkBtn;
@property (nonatomic, retain) UIButton *customeBtn1;
@property (nonatomic, retain) UIBarButtonItem *navBarBtnItem;
@property (nonatomic, retain) UINavigationItem *navBarItem;
@property (nonatomic, retain) UINavigationBar *navBar;
@property (nonatomic, retain) IBOutlet UIButton *startGameBtn;
@property (nonatomic, retain) IBOutlet UIImageView *previewPhoto;
@property (nonatomic, retain) IBOutlet UIImageView *unveilPhotoBig;
@property (nonatomic, retain) IBOutlet UIScrollView *scrollView;
@property (nonatomic, retain) IBOutlet UILabel *peerLabel;
@property (nonatomic, retain) IBOutlet UILabel *gamePlayLabel;
@property (nonatomic, retain) IBOutlet UIImageView *seedPhoto;
@property (nonatomic, retain) IBOutlet UILabel *scrollViewLabel;
@property (nonatomic, retain) UITextField *photoCaptionTextField;
@property (nonatomic, retain) PhotoGameViewController *theParent;
@property (nonatomic, retain) SessionManager *sessionManager;
@property (nonatomic, retain) NSURL *mySeedPhotoURL;
@property (nonatomic, retain) NSString *iVoteForPeerID;
@property (nonatomic, retain) NSMutableArray *playPhotos;
@property (nonatomic, retain) NSMutableArray *alreadySeededPhotos;
@property (nonatomic, retain) NSMutableDictionary *players;
@property (nonatomic, retain) UIButton *curSelectedPlayPhoto;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
iOS游戏应用源代码——steveho-PhotoGame-c816b92.zip
共59个文件
m:10个
xib:9个
h:9个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 99 浏览量
2023-07-05
23:23:59
上传
评论
收藏 2.99MB ZIP 举报
温馨提示
iOS游戏应用源代码——steveho-PhotoGame-c816b92.zip
资源推荐
资源详情
资源评论
收起资源包目录
iOS游戏应用源代码——steveho-PhotoGame-c816b92.zip (59个子文件)
steveho-PhotoGame-c816b92
PhotoGameTests
PhotoGameTests-Info.plist 689B
PhotoGameTests-Prefix.pch 159B
PhotoGameTests.h 251B
en.lproj
InfoPlist.strings 45B
PhotoGameTests.m 450B
DerivedData
PhotoGame-hbrnbewvoachgrasxrisjiwfpxfz
Index
PrecompiledHeaders
PhotoGame-Prefix-diclgfpqpmwlxlcruwlsyxwkxmvk_ast
PhotoGame-Prefix.pch.pth 3.61MB
PhotoGame.xcindex
db.xcindexdb 1.94MB
db.xcindexdb.strings-res 588KB
db.xcindexdb.strings-sym 495KB
db.xcindexdb.strings-dir 4KB
db.xcindexdb.strings-file 12KB
info.plist 286B
Build
Intermediates
PhotoGame.build
Debug-iphoneos
PhotoGame.build
PhotoGame.hmap 2KB
PhotoGame-all-target-headers.hmap 793B
PhotoGame-generated-files.hmap 121B
PhotoGame-project-headers.hmap 1KB
PhotoGame-own-target-headers.hmap 793B
README 21B
Entitlements.plist 224B
PhotoGame
cb_off.png 3KB
HowToPlay.xib 22KB
PhotoGameAppDelegate.h 528B
PlayViewController.m 31KB
SessionManager.h 3KB
PhotoGameViewController.h 1KB
HowToPlay.m 3KB
PlayViewController.xib 29KB
main.m 353B
SessionManager.m 11KB
PhotoGame-Info.plist 1KB
PhotosViewController.xib 17KB
PhotoGameViewController.m 9KB
PhotosViewController.m 13KB
GameData.m 3KB
PhotoGameAppDelegate.m 3KB
PhotosViewController.h 2KB
GameData.h 731B
PhotoGame-Prefix.pch 324B
PlayViewController.h 4KB
HowToPlay.h 622B
Player.m 610B
en.lproj
InfoPlist.strings 45B
PhotoGameViewController.xib 15KB
MainWindow.xib 20KB
cb_on.png 3KB
pwp_hidden_image.png 15KB
Player.h 570B
PhotoGame.xcodeproj
project.pbxproj 27KB
xcuserdata
steveho.xcuserdatad
xcdebugger
Breakpoints.xcbkptlist 5KB
xcschemes
xcschememanagement.plist 841B
PhotoGame.xcscheme 3KB
project.xcworkspace
contents.xcworkspacedata 154B
xcuserdata
steveho.xcuserdatad
UserInterfaceState.xcuserstate 369KB
WorkspaceSettings.xcsettings 769B
PhotoGame.icon.png 5KB
Resources-iPad
PhotoGame
PlayViewController.xib 30KB
PhotosViewController.xib 10KB
en.lproj
PhotoGameViewController.xib 15KB
MainWindow.xib 20KB
共 59 条
- 1
资源评论
快乐无限出发
- 粉丝: 1137
- 资源: 7276
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Java的日记本应用程序设计源码 - Diary
- 基于C#的.NET模板引擎设计源码 - jntemplate
- 基于51单片机+AC24C04+LCD1602显示的电子密码锁程序源代码及电路仿真.zip
- 基于C++的图形共享内存轻量级设计源码 - graphic_surface_lite
- 深入解析指令调度与延迟分支.zip
- 基于STC15F104E系列单片机的EEPROM应用程序测试例程KEIL工程源码.zip
- 基于STC15F104E系列单片机的串口通讯应用程序测试例程KEIL工程源码.zip
- java-leetcode题解之第844题比较含退格的字符串.zip
- java-leetcode题解之第824题山羊拉丁文.zip
- java-leetcode题解之第819题最常见的单词.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功