Subversion Repositories AndroidProjects

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1052 chris 1
package com.gebauz.darts2go;
2
 
3
import com.gebauz.bauzoid.app.CustomServices;
4
import com.gebauz.bauzoid.game.Game;
5
import com.gebauz.bauzoid.graphics.Font;
6
 
7
/** Provides the global font, etc. */
8
public class Darts2GoCustomServices extends CustomServices
9
{
10
        private Font mInGameFont = null;
11
 
12
        static Darts2GoCustomServices mInstance = null;
13
 
14
        public Darts2GoCustomServices(Game game)
15
        {
16
                super(game);
17
 
18
                mInstance = this;
19
        }
20
 
21
        @Override
22
        public void init()
23
        {
24
                mInGameFont = getGame().getFonts().loadFont("data/fonts/ingame.bzf");
25
        }
26
 
27
        @Override
28
        public void exit()
29
        {
30
                mInGameFont = null;
31
        }
32
 
33
        @Override
34
        public void update(float deltaTime)
35
        {
36
        }
37
 
38
        @Override
39
        public void render()
40
        {      
41
        }
42
 
43
        public Font getFont()
44
        {
45
                return mInGameFont;
46
        }
47
 
48
        public Font getInGameFont()
49
        {
50
                return mInGameFont;
51
        }
52
 
53
        public static Darts2GoCustomServices getInstance()
54
        {
55
                return mInstance;
56
        }
57
 
58
}