Пример #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (PkMnGame game = new PkMnGame())
     {
         game.Run();
     }
 }
Пример #2
0
 public TransformScreen(PkMnGame game, ScreenTransformation transformation, int offset, bool parallel)
 {
     this.game           = game;
     this.transformation = transformation;
     this.offset         = offset;
     this.Parallel       = parallel;
 }
Пример #3
0
 public HUD(PkMnGame parent, int x, int y, int width, int height, bool mirror)
     : base(parent, x, y, width, height)
 {
     extraAnimationCounter = -1;
     statusText            = "";
     ShowParty             = false;
     this.mirror           = mirror;
 }
Пример #4
0
 public ScrollingTextBox(PkMnGame parent, int x, int y, int width, int height)
     : base(parent, x, y, width, height)
 {
     queue             = new Queue <string>();
     frameCounter      = 0;
     state             = State.ReadyForNext;
     staticDisplayNext = false;
 }
Пример #5
0
 public Panel(PkMnGame parent, int x, int y, int width, int height)
 {
     this.parent = parent;
     X           = x;
     Y           = y;
     Width       = width;
     Height      = height;
     state       = State.ReadyForNext;
 }
Пример #6
0
        public SelfRenderer(PkMnGame parent, int x, int y, int width, int height)
            : base(parent, x, y, width, height)
        {
            monSprite     = SpriteManager.Back;
            MonSpriteRect = new Rectangle(X + SpriteManager.CharWidth * 2, Y + Height - SpriteManager.BackHeight + 16, SpriteManager.BackWidth, SpriteManager.BackHeight);

            FaceCoords          = new Vector2(MonSpriteRect.X + MonSpriteRect.Width - 48, MonSpriteRect.Y + 72);
            BeamOriginCoords    = new Vector2(MonSpriteRect.X + MonSpriteRect.Width / 2 + 2, MonSpriteRect.Y + MonSpriteRect.Height * 3 / 4);
            ScreenEdgeDirection = -1;
            MonSpriteBottom     = MonSpriteRect.Y + MonSpriteRect.Height - 32;
        }
Пример #7
0
 public HorizontalMenu(PkMnGame parent, int x, int y, int width, int height)
     : base(parent, x, y, width, height)
 {
 }
Пример #8
0
 public PartyMenu(PkMnGame parent, int x, int y, int width, int height)
     : base(parent, x, y, width, height)
 {
     itemHeight = Height / 6;
 }
Пример #9
0
 public MoveDisplay(PkMnGame parent, int x, int y, int width, int height)
     : base(parent, x, y, width, height)
 {
 }
Пример #10
0
 public Menu(PkMnGame parent, int x, int y, int width, int height)
     : base(parent, x, y, width, height)
 {
     items = new List <MenuItem>();
 }
Пример #11
0
 public ExtraHUD(PkMnGame parent, int x, int y, int width, int height, bool flip)
     : base(parent, x, y, width, height)
 {
     this.flip = flip;
 }
Пример #12
0
 public PartyMenuItem(PkMnGame parent, int x, int y, int width, int height, Monster monster, bool selected)
     : base(parent, x, y, width, height, monster.Name, selected)
 {
     this.monster = monster;
     frameCounter = 0;
 }
Пример #13
0
 public MonsterRenderer(PkMnGame parent, int x, int y, int width, int height)
     : base(parent, x, y, width, height)
 {
     Position = SpritePosition.Hidden;
     Display  = SpriteDisplay.Normal;
 }