-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathObjects.cs
122 lines (110 loc) · 2.69 KB
/
Objects.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
114
115
116
117
118
119
120
121
122
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyExampleLibrary.Objects
{
class Cock
{
public float size = 0;
public string color = "default";
public string name = "unnamed";
public Cock () //Empty constructor
{
}
public bool isBig() //Object Method - Determines if your cock is big
{
if(size > 30) return true;
return false;
}
public bool isHuge() //Object Method - Determines if your cock is huge
{
if (size > 50) return true;
return false;
}
public Cock (float aSize, string aColor, string aName) //3 argument constructor
{
size = aSize;
color = aColor;
name = aName;
Console.WriteLine("Un nuevo Cock ha sido creado con éxito.");
}
}
class Game
{
public string title;
public string developer;
private string rating;
public Game(string aTitle, string aDev, string aRate)
{
title = aTitle;
developer = aDev;
rating = aRate;
}
public string Rating
{
get { return rating; }
set
{
if (value == "A" || value == "B" || value == "C" || value == "D")
{
rating = value;
}
else rating = "Empty";
}
}
}
class Player
{
public string name;
public int age;
public int health;
public Player(string aName, int aAge, int aHealth)
{
name = aName;
age = aAge;
health = aHealth;
}
}
#region Vectores
class Vector3D
{ //Valores default del obj
public double x = 0;
public double y = 0;
public double z = 0;
public void CheckPos()
{
Console.WriteLine(x + "" + y + "" + z);
}
}
class Vector2D
{
public double x = 0;
public double y = 0;
public Vector2D(int tx, int ty)
{
x = tx; y = ty;
}
public Vector2D() { }
public void CheckPos()
{
Console.WriteLine("X: " + x + ", Y: " + y);
}
}
class IntVector2D
{
public int x = 0;
public int y = 0;
public IntVector2D(int tx, int ty)
{
x = tx; y = ty;
}
public IntVector2D() { }
public void CheckPos()
{
Console.WriteLine("X: " + x + ", Y: " + y);
}
}
#endregion
}