source: orbit/iOS/Orbit/Orbit/controllers/FlightViewController.h @ b5aa714

Servo
Last change on this file since b5aa714 was b5aa714, checked in by Steve Castellotti <sc@…>, 7 years ago
  • updateScore added
  • Property mode set to 100644
File size: 1.6 KB
Line 
1//
2//  FlightViewController.h
3//  Orbit
4//
5//  Copyright (c) 2013 Puzzlebox Productions, LLC. All rights reserved.
6//  Originally created by Jonathon Horsman.
7//
8//  This code is released under the GNU Public License (GPL) version 2
9//  For more information please refer to http://www.gnu.org/copyleft/gpl.html
10//
11
12#import <UIKit/UIKit.h>
13#import <AVFoundation/AVFoundation.h>
14#import "../SignalConverterDelegate.h"
15
16int minimumScoreTarget = 40;
17int scoreCurrent = 0;
18int scoreLast = 0;
19int scoreHigh = 0;
20
21@interface FlightViewController : UIViewController <SignalConverterDelegate> {
22    AVAudioPlayer *audioPlayer;
23}
24
25@property (nonatomic, retain) IBOutlet UIBarButtonItem *connectButton;
26@property (nonatomic, retain) IBOutlet UIBarButtonItem *testButton;
27@property (nonatomic, retain) IBOutlet UIProgressView *attention;
28@property (nonatomic, retain) IBOutlet UILabel *attentionPercent;
29@property (nonatomic, retain) IBOutlet UIProgressView *meditation;
30@property (nonatomic, retain) IBOutlet UILabel *meditationPercent;
31@property (nonatomic, retain) IBOutlet UIProgressView *signal;
32@property (nonatomic, retain) IBOutlet UILabel *signalPercent;
33@property (nonatomic, retain) IBOutlet UIProgressView *power;
34@property (nonatomic, retain) IBOutlet UILabel *powerPercent;
35@property (nonatomic, retain) IBOutlet UISlider *attentionThreshold;
36@property (nonatomic, retain) IBOutlet UISlider *meditationThreshold;
37@property (nonatomic, retain) IBOutlet UIImageView *statusImage;
38@property (nonatomic, retain) IBOutlet UILabel *scoresDisplay;
39
40- (IBAction) connectButtonPressed:(id) sender;
41- (IBAction) testButtonPressed:(id) sender;
42
43- (void) updateScores;
44
45@end
Note: See TracBrowser for help on using the repository browser.