Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Player {
- public string name;
- public int player_number, movespeed, wins;
- public bool alive, playing, spectating;
- public Location coordinate;
- public Player() {
- name = "Unknown Player";
- }
- public init_Player(string name, int pnum) {
- this.name = name;
- this.player_number = pnum;
- this.movespeed = 300
- this.playing = true;
- this.spectating = false;
- this.wins = 0;
- }
- public init_Spec(string name) {
- this.name = name;
- this.playing = false;
- this.spectating = true;
- }
- public void PrintPlayer() {
- Console.WriteLine("name: {0}, player number: {1}", name, player_number);
- }
- }
- public struct Location {
- public float x, y;
- public init_Location(float x, float y) {
- this.x = x;
- this y = y;
- }
- }
- public float get_distance(float x1, float y1, float x2, float y2) {
- int float distance = Math.Sqrt(Math.Abs(x1*x1 + y1*y1 - (x2*x2 + y2*y2)))
- return distance
- }
- public float get_angel(float x1, float y1, float x2, float y2) {
- int angle = Math.Sin(
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement