Ejemplo n.º 1
0
        //The basic constructor for the class.
        public Star(int posX, int posY)
        {
            this.rootTemplate = StellarObjectTemplateDict.GetTemplate("StellarObject_Star");

            this.posX = posX;
            this.posY = posY;
        }
Ejemplo n.º 2
0
        //The basic constructor for the class.
        public Moon(int posX, int posY)
        {
            this.rootTemplate = StellarObjectTemplateDict.GetTemplate("StellarObject_Moon");

            this.posX = posX;
            this.posY = posY;
        }
Ejemplo n.º 3
0
        //The basic constructor for the class.
        public EmptySpace(int posX, int posY)
        {
            this.rootTemplate = StellarObjectTemplateDict.GetTemplate("StellarObject_EmptySpace");

            this.posX = posX;
            this.posY = posY;
        }
Ejemplo n.º 4
0
        //The standard constructor for now.
        public Planet(int posX, int posY)
        {
            this.rootTemplate = StellarObjectTemplateDict.GetTemplate("StellarObject_Planet");

            this.posX = posX;
            this.posY = posY;
        }