Exemple #1
0
        public StartGameState()
        {
            LetterManager manager = LetterManagerFactory.getFactory().createManager("SCORE<1>   HI-SCORE   SCORE<2>");

            manager.setPos(80, 950);

            /*manager = LetterManagerFactory.getFactory().createManager("HI-SCORE");
             * manager.setPos(350, 950);
             * manager = LetterManagerFactory.getFactory().createManager("SCORE<2>");
             * manager.setPos(600, 950);*/
            list = new LetterManagerList();
            ScoreFactory.getFactory.player_1.setPos(100, 900);
            ScoreFactory.getFactory.player_2.setPos(650, 900);
            ScoreFactory.getFactory.high_score.setPos(380, 900);
        }
Exemple #2
0
        public LetterManager createManager(String s)
        {
            /*LetterManager m = new LetterManager();
             * int i = s.Length - 1;
             * m.createLetter(ProxyLetterSpriteFactory.getFactory().createLetter(s[0]));
             * while (i >= 1)
             * {
             *  char t = s[i];
             *  m.createLetter(ProxyLetterSpriteFactory.getFactory().createLetter(t));
             *  i--;
             * }
             * return m;*/
            LetterManager m = new LetterManager();
            int           i = s.Length - 1;

            while (i >= 0)
            {
                char t = s[i];
                m.createLetter(ProxyLetterSpriteFactory.getFactory().createLetter(s[i]));
                i--;
            }
            return(m);
        }
 public ScoreController()
 {
     scoreManager = LetterManagerFactory.getFactory().createManager("000000");
 }
 public void addManager(LetterManager manager)
 {
     AddToActive(new LetterManagerDataNode(manager));
 }
 public LetterManagerDataNode(LetterManager manager)
 {
     this.manager = manager;
 }