-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRandomEvent.java
More file actions
91 lines (55 loc) · 1.87 KB
/
RandomEvent.java
File metadata and controls
91 lines (55 loc) · 1.87 KB
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
package com.tylerapps.tyler.sovietgame;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import com.tylerapps.tyler.sovietgame.events.IEvent;
import com.tylerapps.tyler.sovietgame.gameManager.GameManager;
public class RandomEvent extends AppCompatActivity implements IEvent {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.random_event);
//note: make some functionality to get this from somewhere
int year = 1933;
//arraylist of events? Hashmap of events, with event and year linked?
}
public void setImage(Bitmap bitmap){
ImageView imageView = (ImageView) this.findViewById(R.id.random_image);
imageView.setImageBitmap(bitmap);
}
@Override
public void setText(String eventText, String[] options) {
}
@Override
public int getSelectedOption() {
return 0;
}
@Override
public void selectOption(int option) {
}
@Override
public String[] getOptions() {
return new String[0];
}
public void setText(String eventText, String optionText1, String optionText2){
TextView mainText = (TextView) this.findViewById(R.id.event_text);
Button option1 = (Button) this.findViewById(R.id.Next);
Button option2 = (Button) this.findViewById(R.id.Hide);
mainText.setText(eventText);
option1.setText(optionText1);
option2.setText(optionText2);
}
public void option1Selected(){
}
public void getStrings(){
}
public void option2Selected(){
}
@Override
public String executeChoice(GameManager manager, int choiceNumber) {
return null;
}
}