Debian Codegraph @

src/player.h

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 /***************************************************************************
2 player.h - description
3 -------------------
4 begin : Sat Sep 30 2000
5 copyright : (C) 2000 by Waldemar Baraldi
6 email : [email protected]
7 ***************************************************************************/
8
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18 #ifndef PLAYER_H
19 #define PLAYER_Hcxx . . $ `src/player.h:19:9`!
20
21 #include "animatedcanvas.h"cxx . . $ `<file>/src/animatedcanvas.h`/
22 #include "pipe.h"cxx . . $ `<file>/src/pipe.h`/
23 #include "pipequeue.h"cxx . . $ `<file>/src/pipequeue.h`/
24 #include "eventstream.h"cxx . . $ `<file>/src/eventstream.h`/
25 #include "board.h"cxx . . $ `<file>/src/board.h`/
26 #include "score.h"cxx . . $ `<file>/src/score.h`/
27
28 class Playercxx . . $ Player# : protected AnimatedCanvascxx . . $ AnimatedCanvas#{
29
30 public:
31
32 static const int PlayerWidthcxx . . $ Player#PlayerWidth.=88;
33 static const int PlayerHeightcxx . . $ Player#PlayerHeight.=240;
34 static const int StartLivescxx . . $ Player#StartLives.=3;
35 static const int LivesXcxx . . $ Player#LivesX.=10;
36 static const int LivesYcxx . . $ Player#LivesY.=230;
37 static const int LivesWidthcxx . . $ Player#LivesWidth.=9;
38 static const int LivesHeightcxx . . $ Player#LivesHeight.=9;
39
40 Playercxx . . $ Player#Player(bd52e798fbdcdd33).(EventStreamcxx . . $ EventStream# * es);
41 virtual ~cxx . . $ Player#`~Player`(ced63f7c635d850d).Playercxx . . $ Player#();
42
43 int widthcxx . . $ Player#width(b126dc7c1de90089).();
44 int heightcxx . . $ Player#height(b126dc7c1de90089).();
45
46 void setPoscxx . . $ Player#setPos(3e454b8ccf442868).(int x, int y);
47 void setStartRowColumncxx . . $ Player#setStartRowColumn(3e454b8ccf442868).(int row, int column);
48 void setBoardcxx . . $ Player#setBoard(86ab2e96c52fb4f9).(Boardcxx . . $ Board# * bd);
49
•50 inline void setRestrictionCoefcxx . . $ Player#setRestrictionCoef(cb2f890c2fdad230).(unsigned int coef){
51 queuecxx . . $ Player#queue.->setRestrictionCoefcxx . . $ PipeQueue#setRestrictionCoef(cb2f890c2fdad230).(coef);
52 }
53
54 inline void setFixedCoefcxx . . $ Player#setFixedCoef(cb2f890c2fdad230).(unsigned int coef){
55 queuecxx . . $ Player#queue.->setFixedCoefcxx . . $ PipeQueue#setFixedCoef(cb2f890c2fdad230).(coef);
56 }
57
58 void incLivescxx . . $ Player#incLives(49f6e7a06ebc5aa8).();
59 void decLivescxx . . $ Player#decLives(49f6e7a06ebc5aa8).();
60 unsigned int livescxx . . $ Player#lives(db52760e79bf9054).();
61 bool isChangedcxx . . $ Player#isChanged(c9857a73d68e59ba).();
62 void incScorecxx . . $ Player#incScore(e439fde3156f010b).(Bonuscxx . . $ Bonus# bonus);
63 void setRequiredcxx . . $ Player#setRequired(d4f767463ce0a6b3).(int required);
64 void incRequiredcxx . . $ Player#incRequired(d4f767463ce0a6b3).(int inc);
65 void decRequiredcxx . . $ Player#decRequired(d4f767463ce0a6b3).(int dec);
66 unsigned int scoreValuecxx . . $ Player#scoreValue(db52760e79bf9054).();
67
68 void playcxx . . $ Player#play(49f6e7a06ebc5aa8).();
69 void paintcxx . . $ Player#paint(dec28a01b93bce57).(VideoManagercxx . . $ VideoManager# * vm);
70 void tickcxx . . $ Player#tick(49f6e7a06ebc5aa8).();
71
72 protected:
73
74 unsigned int nlivescxx . . $ Player#nlives.;
75 unsigned int rest_coefcxx . . $ Player#rest_coef.;
76 unsigned int fixed_coefcxx . . $ Player#fixed_coef.;
77 int start_rowcxx . . $ Player#start_row., start_columncxx . . $ Player#start_column.;
78 bool changecxx . . $ Player#change.;
79 Pointercxx . . $ Pointer# * pointercxx . . $ Player#pointer.;
80 PipeQueuecxx . . $ PipeQueue# * queuecxx . . $ Player#queue.;
81 EventStreamcxx . . $ EventStream# * streamcxx . . $ Player#stream.;
82 Boardcxx . . $ Board# * boardcxx . . $ Player#board.;
83 Scorecxx . . $ Score# * scorecxx . . $ Player#score.;
84 Scorecxx . . $ Score# * requiredcxx . . $ Player#required.;
85 };
86
87 #endif
88