using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using twAPI;
using System.Net;
namespace DesignProject
{
class System
{
public Scene scene { get; private set; }
public Resource resource { get; private set; }
public KeyBoard key { get; private set; }
public Player player { get; private set; }
public BattleManager battle { get; private set; }
public NetworkUDP udp { get; set; }
public TwitterAPI twiter { get; private set; }
public bool isClose { get; set; }
public int[] ipAndPortArray { get; set; }
public System(TwitterAPI tw) {
this.isClose = false;
this.key = new KeyBoard();
this.resource = new Resource();
this.scene = new Scene(this);
this.scene.CreateTitle();
this.scene.CreateConnect();
this.player = new Player(this);
this.twiter = tw;
//this.ipAndPortArray = new int[17];
this.ipAndPortArray = NetworkUDP.GetIPArray(new IPEndPoint(IPAddress.Parse("192.168.0.1"), int.Parse("10800")));
}
public void Update(){
this.key.Update();
this.scene.Update();
}
public void Draw()
{
this.scene.Draw();
}
}
}
最終更新:2011年01月17日 17:47