| 1 | /*************************************************************************** |
| 2 | pipequeue.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 PIPE_QUEUE_H |
| 19 | #define PIPE_QUEUE_Hcxx . . $ `src/pipequeue.h:19:9`! |
| 20 | |
| 21 | #include "animatedcanvas.h"cxx . . $ `<file>/src/animatedcanvas.h`/ |
| 22 | #include "pipe.h"cxx . . $ `<file>/src/pipe.h`/ |
| 23 | #include "videomanager.h"cxx . . $ `<file>/src/videomanager.h`/ |
| 24 | |
| 25 | class PipeQueuecxx . . $ PipeQueue# : public AnimatedCanvascxx . . $ AnimatedCanvas#{ |
| 26 | |
| 27 | public: |
| 28 | |
| 29 | static const int MaxPipescxx . . $ PipeQueue#MaxPipes.=3; |
| 30 | |
| 31 | PipeQueuecxx . . $ PipeQueue#PipeQueue(49f6e7a06ebc5aa8).(); |
| 32 | ~cxx . . $ PipeQueue#`~PipeQueue`(ced63f7c635d850d).PipeQueuecxx . . $ PipeQueue#(); |
| 33 | |
| 34 | int widthcxx . . $ PipeQueue#width(b126dc7c1de90089).(); |
| 35 | |
| 36 | int heightcxx . . $ PipeQueue#height(b126dc7c1de90089).(); |
| 37 | |
| 38 | /** Retorna el Pipe que se encuentra en la cabeza |
| 39 | de la cola y lo quita agregando luego uno por la cola.*/ |
| 40 | Pipecxx . . $ Pipe# * getHeadcxx . . $ PipeQueue#getHead(4e868c031ff97e2e).(); |
| 41 | |
| 42 | /** Retorna el pipe en la posicion.*/ |
| 43 | Pipecxx . . $ Pipe# * getPipecxx . . $ PipeQueue#getPipe(2fbaffac9791ec43).(int pos); |
| 44 | |
| 45 | /** Asigna una probabilidad entre 1..100 de agregar restricciones |
| 46 | de direccion.*/ |
| 47 | void setRestrictionCoefcxx . . $ PipeQueue#setRestrictionCoef(cb2f890c2fdad230).(unsigned int coef); |
| 48 | |
| 49 | /** Asigna una probabilidad entre 1..100 de agregar pipes fijos.*/ |
| 50 | void setFixedCoefcxx . . $ PipeQueue#setFixedCoef(cb2f890c2fdad230).(unsigned int coef); |
| 51 | |
| 52 | bool isChangedcxx . . $ PipeQueue#isChanged(c9857a73d68e59ba).(); |
| 53 | |
| 54 | /** paint heredado.*/ |
| 55 | void paintcxx . . $ PipeQueue#paint(dec28a01b93bce57).(VideoManagercxx . . $ VideoManager# * vm); |
| 56 | |
| 57 | void tickcxx . . $ PipeQueue#tick(49f6e7a06ebc5aa8).(){}; |
| 58 | |
| 59 | protected: |
| 60 | |
| 61 | void fillUpcxx . . $ PipeQueue#fillUp(49f6e7a06ebc5aa8).(); |
| 62 | |
| 63 | Pipecxx . . $ Pipe# * queuecxx . . $ PipeQueue#queue.[MaxPipescxx . . $ PipeQueue#MaxPipes.]; |
| 64 | int indexcxx . . $ PipeQueue#index.; |
| 65 | bool changecxx . . $ PipeQueue#change.; |
| 66 | unsigned int res_coefcxx . . $ PipeQueue#res_coef.; |
| 67 | unsigned int fixed_coefcxx . . $ PipeQueue#fixed_coef.; |
| 68 | bool filledcxx . . $ PipeQueue#filled.; |
| 69 | |
| 70 | Pipecxx . . $ Pipe# * generatePipecxx . . $ PipeQueue#generatePipe(4e868c031ff97e2e).(); |
| 71 | |
| 72 | }; |
| 73 | |
| 74 | #endif |
| 75 |