コード例 #1
0
ファイル: GameClient.cs プロジェクト: Austech/HGlueSim
        public GameClient()
        {
            InputHandler = new InputHandler(this);
            GameMode = null;
            bitsPerSecondTimer = new Stopwatch();
            bitsPerSecondTimer.Restart();
            bitsPerSecondList = new List<uint>();

            lobby = new Lobby(this);

            bitsToAdd = 0;
        }
コード例 #2
0
ファイル: EntityBase.cs プロジェクト: Austech/HGlueSim
        protected EntityBase()
        {
            HotkeyString = "";

            Neutral = false;
            HasBeenViewed = false;
            Team = 0;

            Type = Entity.EntityType.Unit;
            BoundsSize = new Vector2f(20, 20);
            WorldId = 0;
            EntityToUse = null;
            WorldEntities = null;
            rallyPoints = new List<Entity.RallyPoint>();
            Health = 0;
            MaxHealth = 0;
            Position = new Vector2f();
            Energy = 0;
            MaxHealth = 0;
            EnergyRegenRate = 0;
            MyGameMode = null;
        }