-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathware.php
More file actions
63 lines (47 loc) · 1.88 KB
/
Copy pathware.php
File metadata and controls
63 lines (47 loc) · 1.88 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
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="/docs/4.0/assets/img/favicons/favicon.ico">
<title>Cover Template for Bootstrap</title>
<link rel="canonical" href="https://getbootstrap.com/docs/4.0/examples/cover/">
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<!-- Custom styles for this template -->
<link href="cover.css" rel="stylesheet">
</head>
<body class="text-center">
<?php
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
?>
<div class="cover-container d-flex h-100 p-3 mx-auto flex-column">
<header class="masthead mb-4">
<div class="inner">
<h3 class="masthead-brand">Ware</h3>
</div>
</header>
<?php
include "Warrior.php";
include "Enemy.php";
$warrior = new Warrior('warrior' , 50 , 100);
?>
<main role="main" class="">
<h1 class="">Start Ware </h1>
<?php
echo "<p>". "enemy name : " .$_GET['enemy_name'] ."</p>" ;
echo "<p>"."enemy power : ". $_GET['enemy_power'] ."</p>";
echo "<p>"."enemy energy : " . $_GET['enemy_energy'] ."</p>";
echo "<p>"."ware status : " . $warrior->startWare(new Enemy($_GET['enemy_name'] , $_GET['enemy_power'] , $_GET['enemy_energy'] , $_GET['enemy_withdrawal'])) ."</p>";
?>
<form method="get" action="main.php" class="mt-4">
<button type="submit" > end ware and back to select another enemy</button>
</form>
</main>
</div>
</body>
</html>