-
Notifications
You must be signed in to change notification settings - Fork 0
/
diagram-game.puml
111 lines (105 loc) · 3.12 KB
/
diagram-game.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
@startuml
class com.avasaysayava.bagrutproject.game.LevelPreview {
- GameMap map
- Bitmap vignetteBitmap
+ <<Create>> LevelPreview(Context)
+ <<Create>> LevelPreview(Context,AttributeSet)
+ <<Create>> LevelPreview(Context,AttributeSet,int)
+ <<Create>> LevelPreview(Context,AttributeSet,int,int)
+ void surfaceCreated(SurfaceHolder)
+ void surfaceChanged(SurfaceHolder,int,int,int)
+ void surfaceDestroyed(SurfaceHolder)
- void loadMap()
+ void draw(Canvas)
+ void update()
+ void onStart()
+ void onResume()
+ void onPause()
+ void onStop()
+ void onDestroy()
+ boolean isDebug()
+ boolean isGraph()
+ void onCompleted()
+ void loadMap(GameMap)
}
class com.avasaysayava.bagrutproject.game.Level {
- Player player
- double[] fpsGraph
- GameMap map
- Joystick joystick
- Bitmap vignetteBitmap
- boolean debugMode
- JobScheduler jobScheduler
- int fpsIndex
- long t_total
+ <<Create>> Level(Context)
+ <<Create>> Level(Context,AttributeSet)
+ <<Create>> Level(Context,AttributeSet,int)
+ <<Create>> Level(Context,AttributeSet,int,int)
+ boolean onTouchEvent(MotionEvent)
+ void surfaceCreated(SurfaceHolder)
+ void surfaceChanged(SurfaceHolder,int,int,int)
+ void surfaceDestroyed(SurfaceHolder)
+ void draw(Canvas)
- void drawUPS(Canvas,Paint)
- void drawFPS(Canvas,Paint)
- int[] getGradientColor(double)
- void drawBounds(Canvas,Paint)
- void drawPlayerVelocity(Canvas,Paint)
+ void update()
+ boolean isDebug()
+ GameMap getMap()
+ JobScheduler getJobScheduler()
+ Joystick getJoystick()
+ void onStart()
+ void onResume()
+ void onPause()
+ void onStop()
+ void onDestroy()
- void createJobScheduler()
- void createJoystick()
+ boolean isPaused()
+ void pause()
+ void resume()
+ void toggleDebug()
+ void toggleGraph()
+ boolean isGraph()
+ void onCompleted()
+ void loadMap(GameMap)
}
class com.avasaysayava.bagrutproject.game.Constants {
+ {static} int LEVEL_UPS
+ {static} int LEVEL_SCALE
+ {static} int PREVIEW_UPS
+ {static} int PREVIEW_SCALE
}
abstract class com.avasaysayava.bagrutproject.game.Game {
+ int SCALE
+ Paint textPaint
+ TileSoundPreloader tileSoundPreloader
+ TileSet playerTileSet
# LongConsumer onCompleteListener
+ <<Create>> Game(Context,int,int,Paint)
+ <<Create>> Game(Context,AttributeSet,int,int,Paint)
+ <<Create>> Game(Context,AttributeSet,int,int,int,Paint)
+ <<Create>> Game(Context,AttributeSet,int,int,int,int,Paint)
+ {abstract}void surfaceChanged(SurfaceHolder,int,int,int)
+ {abstract}void surfaceCreated(SurfaceHolder)
+ {abstract}void surfaceDestroyed(SurfaceHolder)
+ void setOnCompleteListener(LongConsumer)
+ {abstract}void update()
+ {abstract}void onStart()
+ {abstract}void onResume()
+ {abstract}void onPause()
+ {abstract}void onStop()
+ {abstract}void onDestroy()
+ {abstract}boolean isDebug()
+ {abstract}boolean isGraph()
+ {abstract}void onCompleted()
}
com.avasaysayava.bagrutproject.game.Game <|-- com.avasaysayava.bagrutproject.game.LevelPreview
com.avasaysayava.bagrutproject.game.Game <|-- com.avasaysayava.bagrutproject.game.Level
android.view.SurfaceView <|-- com.avasaysayava.bagrutproject.game.Game
android.view.Callback <|.. com.avasaysayava.bagrutproject.game.Game
android.view.SurfaceHolder +. android.view.Callback
@enduml