#include <Tetris.h>
Inheritance diagram for TetrisBox:

Public Member Functions | |
| TetrisBox (Int_t x=0, Int_t y=0, UInt_t type=0, TPad *pad=(TPad *) TVirtualPad::Pad()) | |
| virtual | ~TetrisBox () |
| Int_t | GetX () |
| Int_t | GetY () |
| UInt_t | GetType () |
| void | SetX (Int_t x) |
| void | SetY (Int_t y) |
| void | SetXY (Int_t x, Int_t y) |
| void | SetType (UInt_t type) |
| Bool_t | IsHidden () |
| void | Hide () |
| void | Show () |
| virtual void | MoveOneLineDown () |
| virtual void | MoveRight () |
| virtual void | MoveLeft () |
| void | Erase () |
| void | Paint (Option_t *option="") |
| void | ExecuteEvent (Int_t, Int_t, Int_t) |
Private Attributes | |
| Int_t | fX |
| Int_t | fY |
| UInt_t | fType |
| TPad * | fPad |
Definition at line 34 of file Tetris.h.
| TetrisBox::TetrisBox | ( | Int_t | x = 0, |
|
| Int_t | y = 0, |
|||
| UInt_t | type = 0, |
|||
| TPad * | pad = (TPad *) TVirtualPad::Pad() | |||
| ) |
| Int_t TetrisBox::GetX | ( | void | ) | [inline] |
Definition at line 46 of file Tetris.h.
References fX.
Referenced by TetrisPiece::GetX(), TetrisPiece::GetXx(), TetrisPiece::GetXxYy(), TetrisPiece::GetXY(), MoveLeft(), and MoveRight().
| Int_t TetrisBox::GetY | ( | ) | [inline] |
Definition at line 47 of file Tetris.h.
References fY.
Referenced by TetrisPiece::GetXxYy(), TetrisPiece::GetXY(), TetrisPiece::GetY(), TetrisPiece::GetYy(), and MoveOneLineDown().
| void TetrisBox::SetX | ( | Int_t | x | ) |
Definition at line 51 of file Tetris.cxx.
References fPad, fX, gBoxPixelSize, TPad::GetX2(), TBox::SetX1(), TBox::SetX2(), width, x1, x2, and TPad::XtoPixel().
Referenced by MoveLeft(), MoveRight(), TetrisPiece::SetType(), TetrisPiece::SetX(), TetrisPiece::SetXx(), TetrisPiece::SetXxYy(), TetrisPiece::SetXY(), and SetXY().
| void TetrisBox::SetY | ( | Int_t | y | ) |
Definition at line 66 of file Tetris.cxx.
References fPad, fY, gBoxPixelSize, TPad::GetY1(), height, TBox::SetY1(), TBox::SetY2(), and TPad::YtoPixel().
Referenced by MoveOneLineDown(), TetrisPiece::SetType(), TetrisPiece::SetXxYy(), TetrisPiece::SetXY(), SetXY(), TetrisPiece::SetY(), and TetrisPiece::SetYy().
| void TetrisBox::SetType | ( | UInt_t | type | ) | [inline] |
| Bool_t TetrisBox::IsHidden | ( | ) | [inline] |
| void TetrisBox::Hide | ( | ) | [inline] |
Definition at line 56 of file Tetris.h.
References SetType().
Referenced by TetrisPiece::HideSomeBoxes().
| virtual void TetrisBox::MoveOneLineDown | ( | ) | [inline, virtual] |
| virtual void TetrisBox::MoveRight | ( | ) | [inline, virtual] |
| virtual void TetrisBox::MoveLeft | ( | ) | [inline, virtual] |
| void TetrisBox::Erase | ( | ) |
Definition at line 88 of file Tetris.cxx.
References fPad, TBox::fX1, TBox::fX2, TBox::fY1, TBox::fY2, TAttFill::GetFillColor(), Paint(), TPad::PixeltoX(), TPad::PixeltoY(), TWbox::SetBorderMode(), and TAttFill::SetFillColor().
| void TetrisBox::Paint | ( | Option_t * | option = "" |
) | [virtual] |
Reimplemented from TWbox.
Definition at line 81 of file Tetris.cxx.
References fPad, IsHidden(), and TWbox::Paint().
Referenced by Erase(), and CurrentPiece::Paint().
Int_t TetrisBox::fX [private] |
Int_t TetrisBox::fY [private] |
UInt_t TetrisBox::fType [private] |
TPad* TetrisBox::fPad [private] |
1.5.1