Exemplo n.º 1
0
        public static GameTower GetInterpolator(string method, params object[] arguments)
        {
            GameTower tower = null;

            Type tower_type = GetTowerType(method);

            if (tower_type != null)
            {
                tower = Activator.CreateInstance(tower_type, arguments) as GameTower;
            }

            return(tower);
        }
Exemplo n.º 2
0
        public static GameTower GetTower(Type type, params object[] arguments)
        {
            GameTower interpolator = Activator.CreateInstance(type, arguments) as GameTower;

            return(interpolator);
        }
Exemplo n.º 3
0
        public static GameTower GetTower(Type type, double[] x, double[] y)
        {
            GameTower interpolator = Activator.CreateInstance(type, x, y) as GameTower;

            return(interpolator);
        }