Exemple #1
0
        public bool selectCell(Vector3 vector, Color selectColor)
        {
            Hex hex = findHexAt(new Vector2(vector.X, vector.Z));

            if (hex != null)
            {
                LHGCommon.printToConsole("Selected Hex", hex);
                hex.HexState.BackgroundColor = selectColor;
                return(true);
            }

            return(false);
        }
        public Player createMainPlayer(string referenceName, string name, PrimaryStatistics stats)
        {
            LHGCommon.printToConsole("Creating main player " + name);
            Player player = createPlayerFromTemplate(referenceName);

            if (player.MyType == Player.Type.Human)
            {
                Human human = (Human)player;
                human.MyName  = name;
                human.MyStats = stats;
                human.IsComputerControlled = false;
                human.IsMainPlayer         = true;
                human.IsAlive = true;
                return(human);
            }

            return(null);
        }