-
Notifications
You must be signed in to change notification settings - Fork 0
/
Anubis.cs
74 lines (67 loc) · 2.3 KB
/
Anubis.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp7
{
class Anubis : Monstre
{
public int tailleanubis;
public Anubis(string Nom, string Description, map M, int xx, int yy) : base(Nom, Description, M, xx, yy)
{
PVMonstre = 60;
tailleanubis = 3;
}
public override void attack(player P)
{
base.attack(P);
coup(P);
}
public override void trouve()
{
Console.Clear();
Console.WriteLine("=============================================================================");
Console.WriteLine(" vous avez trouvé un monstre ");
Console.WriteLine("=============================================================================");
Console.WriteLine();
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine();
Console.WriteLine(@"
/\ /l
((.Y(!
\ |/
/ 6~6,
\ _ +-.
\`-=--^-'
\ \
_/ \
( . Y
/'\ `--^ --v--.
/ _ `--'T~\/~\/
/ ' ~\. !
_ Y Y./ '
Y ^| | | ~~7
| l | / ./ '
| `L | Y.^/ ~T
| l ! | |/| | -Row
| .`\/ ' | Y | !
l '~ j l j_L______
\, ____{ __'~ __ ,\_,\_
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
base.trouve();
Console.WriteLine(" spider cochon c'est Le plus foooort !! woow viens te battre !!!!!!!!!!!!!!!!");
Console.WriteLine("==================================================================");
Console.WriteLine(" PV:" + PVMonstre);
Console.WriteLine(" Taille :" + tailleanubis);
Console.WriteLine("==================================================================");
}
public void coup(player P)
{
// int PVHero = P.Hero.Pv;
Console.WriteLine(nom + " lance coud de poing ardant et vous enleve 20 points de vie");
P.Hero.Pv = P.Hero.Pv - 10;
Console.WriteLine(" VOS POINTS DE VIE SONT A :" + P.Hero.Pv);
}
}
}