-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSensationsFortes.php
47 lines (39 loc) · 1.02 KB
/
SensationsFortes.php
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
<?php
require_once "Attraction.php";
class SensationsFortes extends Attraction
{
public function __construct(string $nom = " ")
{
parent::__construct($nom);
}
// Commentaires des visiteurs de cette attraction :
public function rocknroll()
{
echo "AAAAAAAaaaaaaAAAAAAAAHhhhh !!!!! Elle déchiiiiiiiiiiiire cette attraction !!!" . PHP_EOL;
}
public function commentaire()
{
$this->rocknroll();
}
// Devrait enlever des points de propreté aux attractions SensationsFortes
public function vomi()
{
$number = random_int(1, 5);
if ($number == 5) {
return $this->ptProprete -= 12;
} else {
return $this->ptProprete -= 2;
}
}
/*
public function salete(){
return $this->ptProprete -= 2;
if($number != 5){
return $this->ptProprete -= 5 ;
}
else{
$this->vomi();
}
}
*/
}