コード例 #1
0
 public Player(string name, Minecraft minecraft)
 {
     this.name       = name;
     this.minecraft  = minecraft;
     entityID        = 0;
     this.position   = new XYZ <double> (0, 0, 0);
     look            = new Look <float> (0, 0);
     moving          = new Timer(50);
     moving.Elapsed += delegate(object source, ElapsedEventArgs e) {
         this.nextMove();
     };
     moving.Start();
     speed = 5;            //per 1 second
     //endPosition = new XYZ<double> (0, 0, 0);
 }
コード例 #2
0
ファイル: Mob.cs プロジェクト: zaitsevyan/MinecraftBrainBot
 public Mob()
 {
     position = new XYZ <int> (0, 0, 0);
     look     = new Look <byte> (0, 0);
 }
コード例 #3
0
 public OtherPlayer()
 {
     position = new XYZ <int> (0, 0, 0);
     look     = new Look <byte> (0, 0);
     armor    = new Dictionary <int, Armor> ();
 }