' ############ Bäcker ###########################
Private Sub Bäcker_Bau_Click()
bäckerTimer.Enabled = True
End Sub
Private Sub bäckerTimer_Timer()
Gold.Caption = Gold.Caption - 100 'Kosten für die Production
bäckered.Visible = True 'IN bau Schrift Sichtbar
If bäckered.Visible = True Then ' WEn "inbau" sichtbar ist ...
Bäcker_Bau.Enabled = False
End If
bäckerTimer.Enabled = False '... bäckertimer1 Disable ...
bäckerTimer1.Enabled = True ' ... bäcker.Timer1 Enabled
End Sub
Private Sub bäckerTimer1_Timer()
wie_bäcker.Caption = wie_bäcker.Caption + 1 'Farm hinzufügen
Bäcker_Bau.Enabled = True ' Bau button Enabled
bäckered.Visible = False
bäckerTimer1.Enabled = False
End Sub
' ############ FARM ###########################
Private Sub Farm_Bau_Click()
farm.Enabled = True
End Sub
Private Sub farm_Timer()
Gold.Caption = Gold.Caption - 100 'Kosten für die Production
farmred.Visible = True 'IN bau Schrift Sichtbar
If farmred.Visible = True Then ' WEn "inbau" sichtbar ist ...
Farm_Bau.Enabled = False
End If
farm.Enabled = False '... bau button disable
farm2.Enabled = True 'Farm2.Timer Enabled
End Sub
Private Sub farm2_Timer()
wie_farm.Caption = wie_farm.Caption + 1 'Farm hinzufügen
Farm_Bau.Enabled = True ' Bau button Enabled
farmred.Visible = False ' Bau button Visible = False
farm2.Enabled = False
End Sub
Private Sub Label24_Click()
End Sub
Private Sub Form_Load()
End Sub
' ################## MÜHLE ###########################
Private Sub Mühle_Bau_Click()
'If Gold.Caption <= 0 Then
mühleTimer.Enabled = True
'Else
'MsgBox "nicht genügend Geld!"
' End If
End Sub
Private Sub mühleTimer_Timer()
Gold.Caption = Gold.Caption - 500 'Kosten für die Production
mühlered.Visible = True 'IN bau Schrift Sichtbar
If mühlered.Visible = True Then ' WEn "inbau" sichtbar ist ...
Mühle_Bau.Enabled = False
End If
mühleTimer.Enabled = False '... Timer Enabled = false
mühleTimer1.Enabled = True 'Farm2.Timer Enabled
End Sub
Private Sub mühleTimer1_Timer()
wie_mühle.Caption = wie_mühle.Caption + 1 'Farm hinzufügen
Mühle_Bau.Enabled = True ' Bau button Enabled
mühlered.Visible = False
mühleTimer1.Enabled = False
End Sub
' !
' SONTIGES
' !
' PFÄNUNG WEN GELD UNTER 0
Private Sub geldtimer1_Timer() '1.Warnung
If Gold.Caption < 0 Then
nachlab.Caption = "Du bist im Minus, 30sekunden noch und dir werden 2 Gebäude Gepfändet, ausserdem bekommst du 2000G!"
geldtimer2.Enabled = True
geldtimer1.Enabled = False
End If
End Sub
Private Sub geldtimer2_Timer() '2.Warnung + Pfänung
nachlab.Caption = "Das Imperium hat dir eine Farm & eine Mühle genommen!"
wie_farm.Caption = wie_farm.Caption - 1
wie_mühle.Caption = wie_mühle.Caption - 1
Gold.Caption = Gold.Caption + 2000
geldtimer2.Enabled = False
geldtimer1.Enabled = True
'PFÄNDUNG ENDE
End Sub
Private Sub Timer1_Timer()
Timer2.Enabled = True
Timer1.Enabled = False
End Sub
Private Sub Timer2_Timer()
If wie_farm.Caption = 1 Then
Weizen.Caption = Weizen.Caption + 10
End If
End Sub