-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
43 lines (42 loc) · 1.31 KB
/
Program.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
namespace RPG;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Riptide;
using Encoding = System.Text.Encoding;
using System.IO;
using System.Threading;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Collections;
using System.Text.Json;
public class Program
{
public static void Main(string[] args)
{
//just print out hello world
Console.WriteLine("Hello World!");
Client client = new Client();
client.Play();
}
public static void test()
{
//test the player class
Items?[] inventory = new Items?[40];
Player player = new Player("player", null, 100, 100, 100, 100, 1, 0, 10, 10, 10, 10, 10, 10, 0, null, new Armour?[4], inventory);
//add a sword to the inventory
player.AddItem(new Weapon("sword", 10, 10, 1, 1, 10, false));
//equip the sword
player.AddWeaponFromInv(0);
//add an apple to the inventory
player.AddItem(new Items("apple", 10, 1, 1, 1));
//print out the stats
player.printStats();
//test the dungeon class
Dungeon dungeon = new Dungeon(10, 10);
dungeon.Generate();
dungeon.printDungeon();
}
}