//
// GameViewController.h
// i4nGoalie
//
// Created by Maksym Grebenets on 12/11/08.
// Copyright __MyCompanyName__ 2008. All rights reserved.
//
#import <UIKit/UIKit.h>
// UI elements enumeration
enum {
elemUndefined,
elemSound,
elemPause,
elemReplay,
elemDigit,
elemPauseCnt
};
enum {
elemStateNA,
elemStateOn,
elemStateOff
};
@class SoundEffect;
@class i4nGoalieAppDelegate;
@interface GameViewController : UIViewController {
// App Delegate
i4nGoalieAppDelegate *appDelegate;
// trajectories
// trajectory 0
IBOutlet UIView *projectileView00;
IBOutlet UIView *projectileView01;
IBOutlet UIView *projectileView02;
IBOutlet UIView *projectileView03;
IBOutlet UIView *projectileView04;
// trajectory 0
IBOutlet UIView *projectileView10;
IBOutlet UIView *projectileView11;
IBOutlet UIView *projectileView12;
IBOutlet UIView *projectileView13;
IBOutlet UIView *projectileView14;
// trajectory 0
IBOutlet UIView *projectileView20;
IBOutlet UIView *projectileView21;
IBOutlet UIView *projectileView22;
IBOutlet UIView *projectileView23;
IBOutlet UIView *projectileView24;
// trajectory 0
IBOutlet UIView *projectileView30;
IBOutlet UIView *projectileView31;
IBOutlet UIView *projectileView32;
IBOutlet UIView *projectileView33;
IBOutlet UIView *projectileView34;
// trajectory views array
NSArray *trajectoryViews;
// catcher views
IBOutlet UIView *catcherLeftView;
IBOutlet UIView *catcherRightView;
IBOutlet UIView *catcherLTopView;
IBOutlet UIView *catcherLBottomView;
IBOutlet UIView *catcherRTopView;
IBOutlet UIView *catcherRBottomView;
NSArray *catcherViews;
// helper view
IBOutlet UIImageView *helperView;
// penalty views
IBOutlet UIView *penaltyView1;
IBOutlet UIView *penaltyView2;
IBOutlet UIView *penaltyView3;
NSArray *penaltyViews;
IBOutlet UIView *missedLabelView;
// crash views (left)
IBOutlet UIView *crashLeftView;
IBOutlet UIView *savedLeftView0;
IBOutlet UIView *savedLeftView1;
IBOutlet UIView *savedLeftView2;
IBOutlet UIView *savedLeftView3;
NSArray *leftCrashViews;
// crash views (left)
IBOutlet UIView *crashRightView;
IBOutlet UIView *savedRightView0;
IBOutlet UIView *savedRightView1;
IBOutlet UIView *savedRightView2;
IBOutlet UIView *savedRightView3;
NSArray *rightCrashViews;
// digit views
IBOutlet UIImageView *digitView0;
IBOutlet UIImageView *digitView1;
IBOutlet UIImageView *digitView2;
IBOutlet UIImageView *digitView3;
NSArray *digitViews;
// game mode buttons
IBOutlet UIButton *gameAButton;
IBOutlet UIButton *gameBButton;
IBOutlet UIView *gameBButtonLabel;
// game mode label views
IBOutlet UIView *gameALabelView;
IBOutlet UIView *gameBLabelView;
// sound on/off view
IBOutlet UIView *soundIconView;
IBOutlet UIButton *soundButton;
// pause on/off view
IBOutlet UIView *pauseIconView;
IBOutlet UIImageView *pauseCountView;
IBOutlet UIView *pauseLabelView;
IBOutlet UIButton *pauseButton;
// unpause views
IBOutlet UIView *unpauseView0;
IBOutlet UIView *unpauseView1;
IBOutlet UIView *unpauseView2;
IBOutlet UIView *unpauseView3;
NSArray *unpauseViews;
// info and stats button outlets
IBOutlet UIButton *infoButton;
IBOutlet UIButton *statsButton;
IBOutlet UIView *statsButtonLabel;
#ifdef DISKOTEKA_90
IBOutlet UIButton *diskotekaButton;
#endif
// replay views
IBOutlet UIView *replayIconView;
IBOutlet UIButton *replayButton;
IBOutlet UIView *replayButtonLabel;
IBOutlet UIView *replayLabelView;
IBOutlet UIButton *replayStartButton;
IBOutlet UIButton *replayStopExitButton;
// catcher position
NSInteger catcherPosition;
// animate transitions flag
BOOL animateTransitions;
// sounds
SoundEffect *crashSound;
SoundEffect *pauseCountSound;
SoundEffect *resetSound;
}
#pragma mark Debug control actions
- (IBAction)suspend:(id)sender;
- (IBAction)resume:(id)sender;
- (IBAction)reset:(id)sender;
- (IBAction)restart:(id)sender;
- (IBAction)catchAllAction:(id)sender;
#pragma mark Catcher control actions
- (void)catcherAction:(NSNumber *)direction;
- (IBAction)topLeftAction:(id)sender;
- (IBAction)bottomLeftAction:(id)sender;
- (IBAction)topRightAction:(id)sender;
- (IBAction)bottomRightAction:(id)sender;
#pragma mark Game control actions
- (IBAction)gameAAction:(id)sender;
- (IBAction)gameBAction:(id)sender;
- (IBAction)gamePauseAction:(id)sender;
- (IBAction)buttonTouchDownAction:(id)sender;
- (IBAction)gameInfoAction:(id)sender;
- (IBAction)gameSoundAction:(id)sender;
- (IBAction)gameReplayAction:(id)sender;
- (IBAction)gameStatsAction:(id)sender; // open feint
- (IBAction)gameReplayStartAction:(id)sender;
- (IBAction)gameReplayStopExitAction:(id)sender;
#ifdef DISKOTEKA_90
- (IBAction)diskotekaAction:(id)sender;
#endif
#pragma mark Display control methods
- (void)displayControlsForState:(NSInteger)state;
- (void)displayNavigationControlsForState:(NSInteger)state;
- (void)displayPauseControlsForState:(NSInteger)state;
- (void)displayReplayControlsForState:(NSInteger)state;
#pragma mark UI and sounds setup
- (void)setupSounds;
- (void)setupUserInterface;
#pragma mark
#pragma mark Methods to be called by projectile observer or app delegate
#pragma mark
#pragma mark Points
- (void)updatePoints:(id)param;
#pragma mark Penalties
- (void)updatePenalties:(id)param;
- (float)resetPenaltiesTime;
- (void)resetPenalties:(id)param;
#pragma mark Trajectories
- (void)clearTrajectories:(id)param;
- (void)updateProjectileOn:(NSInteger)trajId atIndex:(NSInteger)projIdx hidden:(BOOL)hidden;
#pragma mark Helper
- (void)updateHelper:(id)hidden;
- (void)helperCrashAnimate:(id)start;
#pragma mark Crash
- (float)animateCrashTime:(BOOL)saved;
- (void)animateCrash:(id)params;
#pragma mark Sound on/off
- (void)updateSound:(BOOL)soundOn;
#pragma mark Pause on/off
- (void)updatePause:(BOOL)paused;
- (void)updatePauseCount:(id)params;
#pragma mark Replay on/off
- (void)updateReplay:(BOOL)replayOn;
#pragma mark Game mode
- (void)updateMode:(NSInteger)mode;
#pragma mark Auxiliary methods to configure UI
- (NSString *)prefixForElement:(NSInteger)element;
- (float)getAlphaForElement:(NSInteger)element inState:(NSInteger)state;
@property (nonatomic, retain) i4nGoalieAppDelegate *appDelegate;
@property (nonatomic, readonly) NSInteger catcherPosition;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
iOS游戏应用源代码——mgrebenets-the-eggs-ios-0ad97de.zip
共496个文件
png:425个
h:19个
m:17个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 148 浏览量
2023-07-05
23:20:52
上传
评论
收藏 3.39MB ZIP 举报
温馨提示
iOS游戏应用源代码——mgrebenets-the-eggs-ios-0ad97de.zip
资源推荐
资源详情
资源评论
收起资源包目录
iOS游戏应用源代码——mgrebenets-the-eggs-ios-0ad97de.zip (496个子文件)
.gitattributes 29B
.gitignore 91B
GameViewController.h 6KB
The_EggsAppDelegate.h 3KB
SoundEffect.h 3KB
ProjectileObserver.h 1KB
TimeFrame.h 1KB
TheEggsProAboutViewController.h 1KB
StatsEntry.h 892B
ProjectileWorkerDelegate.h 848B
SimpleProjectileWorkerDelegate.h 769B
ProjectileWorker.h 675B
HelperWorker.h 582B
ReplayData.h 496B
AboutViewController.h 410B
GamesListViewController.h 397B
DiskotekaViewController.h 361B
ViewTransformer.h 327B
AttrView.h 324B
Debugging.h 296B
WideGameViewController.h 277B
GameViewController.m 19KB
ProjectileObserver.m 16KB
SimpleProjectileWorkerDelegate.m 15KB
TheEggsProAboutViewController.m 9KB
GamesListViewController.m 6KB
WideGameViewController.m 4KB
SoundEffect.m 4KB
HelperWorker.m 4KB
ProjectileWorker.m 3KB
StatsEntry.m 3KB
AboutViewController.m 3KB
TimeFrame.m 2KB
DiskotekaViewController.m 2KB
ReplayData.m 2KB
ViewTransformer.m 1KB
AttrView.m 915B
main.m 366B
The_EggsAppDelegate.mm 42KB
project.pbxproj 725KB
The_Eggs_Prefix.pch 215B
The_Eggs-Info.plist 1KB
xcschememanagement.plist 480B
Default_disco.png 232KB
The_Eggs-background.png 189KB
The_Eggs_HD-background.png 184KB
The_Cat-background.png 163KB
The_Hunt-background.png 160KB
The_Hockey-background.png 157KB
The_Space_Explorers-background.png 138KB
The_Space_Flight-background.png 124KB
diskoteka.png 112KB
Default.png 68KB
The_Cat-catcher-right.png 22KB
The_Eggs_HD-catcher-left.png 21KB
The_Cat-catcher-left.png 19KB
The_Eggs_HD-catcher-right.png 18KB
The_Hunt-catcher-right.png 16KB
The_Hunt-catcher-left.png 15KB
The_Hockey-ctacher-right.png 15KB
The_Hockey-catcher-left.png 14KB
diskotekaButtonUgly.png 14KB
restart.png 14KB
The_Eggs_HD-helper.png 13KB
The_Hockey-helper.png 12KB
The_Eggs-catcher-left.png 11KB
The_Eggs_Pro-app-icon.png 11KB
The_Eggs_Lite-app-icon.png 11KB
The_Eggs_HD-app-icon.png 11KB
The_Eggs-app-icon.png 10KB
The_Cat-helper.png 10KB
The_Hunt-app-icon.png 10KB
The_Eggs-catcher-right.png 10KB
diskotekaButton.png 10KB
The_Cat-app-icon.png 9KB
The_Space_Explorers-app-icon.png 9KB
btn-info-black.png 9KB
The_Hockey-app-icon.png 9KB
btn-close.png 8KB
The_Eggs_HD-catcher-ltop.png 8KB
The_Space_Flight-app-icon.png 8KB
The_Eggs_HD-catcher-lbottom.png 8KB
The_Eggs_HD-catcher-rbottom.png 8KB
The_Eggs-helper.png 7KB
The_Cat-catcher-rtop.png 7KB
The_Cat-catcher-ltop.png 7KB
The_Hunt-helper.png 7KB
The_Eggs_HD-catcher-rtop.png 6KB
The_Cat-catcher-lbottom.png 6KB
The_Eggs-btn-rbottom_pressed.png 6KB
The_Eggs-btn-rtop_pressed.png 6KB
The_Eggs-btn-rbottom.png 6KB
The_Eggs-btn-lbottom_pressed.png 6KB
The_Eggs-btn-rtop.png 6KB
The_Eggs-catcher-ltop.png 6KB
The_Eggs-btn-ltop_pressed.png 6KB
The_Eggs-btn-lbottom.png 6KB
The_Eggs-btn-ltop.png 6KB
The_Eggs-catcher-lbottom.png 6KB
The_Eggs-catcher-rbottom.png 6KB
共 496 条
- 1
- 2
- 3
- 4
- 5
资源评论
快乐无限出发
- 粉丝: 1126
- 资源: 7260
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功