-
Notifications
You must be signed in to change notification settings - Fork 0
/
universe.cpp
154 lines (114 loc) · 2.96 KB
/
universe.cpp
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#include "universe.h"
/*** trebuchet.equipment.Scanner ***/
void Scanner::scan() {
}
/*** trebuchet.equipment.Device ***/
Device::Device() {
}
void Device::explode() {
}
/*** trebuchet.equipment.LongRangeScanner$SubspaceScanner ***/
LongRangeScanner::SubspaceScanner::SubspaceScanner() {
this->subspaceFrequency = 10483298;
}
void LongRangeScanner::SubspaceScanner::scan() {
this->subspaceFrequency = this->subspaceFrequency + 2;
}
/*** trebuchet.equipment.LongRangeScanner$TachyonScanner ***/
LongRangeScanner::TachyonScanner::TachyonScanner() {
this->tachyonDopplerCalibration = 22340;
}
void LongRangeScanner::TachyonScanner::scan() {
this->tachyonDopplerCalibration = this->tachyonDopplerCalibration + 4;
}
/*** trebuchet.equipment.LongRangeScanner ***/
LongRangeScanner::LongRangeScanner() {
}
int LongRangeScanner::getRange() {
return this->range;
}
void LongRangeScanner::setRange(int range) {
this->range = range;
}
void LongRangeScanner::scan() {
this->range = this->range + 234;
}
int LongRangeScanner::getDeviceId() {
return 1337;
}
/*
The USCSS Nostromo (reg. 180924609) was a $42 million (and adjusted) commercial
towing vessel owned by the Weyland-Yutani Corporation, a Lockmart CM 88B
Bison M-Class starfreighter used as a commercial hauler between Thedus and Earth.
*/
/*** trebuchet.craft.TowingVessel ***/
int TowingVessel::REGISTRATION = 180924609;
TowingVessel::TowingVessel() {
this->name = "Nostromo";
this->starfreighterClass = 'M';
}
TowingVessel::TowingVessel(LongRangeScanner * longRangeScanner) {
this->name = "Nostromo";
this->starfreighterClass = 'M';
this->longRangeScanner = longRangeScanner;
}
LongRangeScanner * TowingVessel::getLongRangeScanner() {
return this->longRangeScanner;
}
void TowingVessel::reset(LongRangeScanner * longRangeScanner, short starfreighterClass) {
// Don't call this method when above light speed.
this->longRangeScanner = longRangeScanner;
this->starfreighterClass = starfreighterClass;
}
const char * TowingVessel::getName() {
return this->name;
}
/*** trebuchet.Universe ***/
Universe::Universe() {
}
void Universe::main(char * args) {
;
}
int main(int argc, char* argv[]) {
Universe::main(0);
return 0;
}
/*** java.lang.Object ***/
Object::Object() {
}
Object * Object::getClass() {
return 0;
}
int Object::hashCode() {
return 0;
}
bool Object::equals(Object * obj) {
// return (this == obj);
return false;
}
Object * Object::clone() {
return 0;
}
const char * Object::toString() {
// return getClass().getName() + "@" + Integer.toHexString(hashCode());
return 0;
}
void Object::notify() {
}
void Object::notifyAll() {
}
void Object::wait(long long timeout) {
}
void Object::wait(long long timeout, int nanos) {
}
void Object::wait() {
}
void Object::finalize() {
}
/*** Class ***/
Class::Class(const char * name) {
this->name = name;
}
bool Class::isAssignableFrom(Class * type) {
return false;
}