-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSummoner.cs
113 lines (106 loc) · 2.48 KB
/
Summoner.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
using InputManager;
using LeagueBot.Constants;
using LeagueBot.Windows;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace LeagueBot
{
public class Summoner
{
private Bot Bot
{
get;
set;
}
public Summoner(Bot bot)
{
Bot = bot;
}
public Point Position
{
get;
set;
}
public void Summoner1()
{
Keyboard.KeyPress(Keys.E);
}
public void Summoner2()
{
Keyboard.KeyPress(Keys.D5);
}
public void Z()
{
Keyboard.KeyPress(Keys.D2);
}
public void Q()
{
Keyboard.KeyPress(Keys.D1);
}
public void E()
{
Keyboard.KeyPress(Keys.D3);
}
public void R()
{
Keyboard.KeyPress(Keys.D4);
}
public void MaxQ()
{
Bot.LeftClick(PixelsConstants.UP_Q_SLOT);
}
public void MaxZ()
{
Bot.LeftClick(PixelsConstants.UP_Z_SLOT);
}
public void MaxE()
{
Bot.LeftClick(PixelsConstants.UP_E_SLOT);
}
public void Back()
{
Keyboard.KeyPress(Keys.B);
Thread.Sleep(9000);
}
public void Move(Point point)
{
Position = point;
Bot.RightClick(point);
}
public void LockCamera()
{
Bot.LeftClick(PixelsConstants.LOCK_CAMERA_BUTTON);
Thread.Sleep(1000);
}
public void Wait(int seconds)
{
Thread.Sleep(seconds * 1000);
}
public void Talk(string message)
{
Keyboard.KeyPress(Keys.Return);
Thread.Sleep(50);
foreach (var letter in message)
{
if (letter == ' ')
{
Keyboard.KeyDown(Keys.Space);
}
else
{
var key = (Keys)Enum.Parse(typeof(Keys), char.ToUpper(letter).ToString());
Keyboard.KeyDown(key);
}
Thread.Sleep(100);
}
Keyboard.KeyPress(Keys.Return);
Thread.Sleep(150);
}
}
}