-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cliff
93 lines (54 loc) · 1.14 KB
/
Cliff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//
// Cliff.swift
// Physics Breaker
//
// Created by Charlie Bushman on 2/15/16.
// Copyright © 2016 imaginary inc. All rights reserved.
//
import Foundation
import UIKit
import SpriteKit
class Cliff {
private var u: Double
private var lenUpper: Double
private var lenLower: Double
private var height: Double
private var ang: Double
init(){
u = 0
lenUpper = 0
lenLower = 0
height = 0
ang = 0
}
func getU() ->Double{
return u
}
func setU(uX: Double){
u = uX
}
func getLenUpper() ->Double{
return lenUpper
}
func setLenUpper(lenUpperX: Double){
lenUpper = lenUpperX
}
func getLenLower() ->Double{
return lenLower
}
func setLenLower(lenLowerX: Double){
lenLower = lenLowerX
}
func getHeight() ->Double{
return height
}
func setHeight(heightX: Double){
height = heightX
}
func getAng() ->Double{
return ang
}
func setAng(angX: Double){
ang = angX
}
}