コード例 #1
0
ファイル: OracleNpc.cs プロジェクト: struckAnerve/vikingvalg
        public OracleNpc(String artName, Rectangle destinationRectangle, Rectangle sourceRectangle, Color color, float rotation,
            Vector2 origin, SpriteEffects effects, float layerDepth, Player player, InGameLevel inGameLevel)
            : base(artName, destinationRectangle, sourceRectangle, color, rotation, origin, effects, layerDepth, player, inGameLevel)
        {
            _talkingRangeBox.Y -= 20;

            npcName = "Oracle";
            dialogController = new DialogControl((NeutralNpc)this);

            InitialText();
        }
コード例 #2
0
ファイル: NeutralNPC.cs プロジェクト: struckAnerve/vikingvalg
        public NeutralNpc(String artName, Rectangle destinationRectangle, Rectangle sourceRectangle, Color color, float rotation,
            Vector2 origin, SpriteEffects effects, float layerDepth, Player player, InGameLevel inGameLevel)
            : base(artName, destinationRectangle, sourceRectangle, color, rotation, origin, effects, layerDepth)
        {
            this.inGameLevel = inGameLevel;

            inConversation = false;
            _player1 = player;

            _talkingRangeBox = new Rectangle(destinationRectangle.Left - _talkingRangeBoxOffset, destinationRectangle.Bottom - _talkingRangeBoxHeight,
                destinationRectangle.Width + _talkingRangeBoxOffset * 2, _talkingRangeBoxHeight);

            inGameLevel.spriteService.LoadDrawable(new StaticSprite("box"));
        }
コード例 #3
0
ファイル: OracleNpc.cs プロジェクト: struckAnerve/vikingvalg
 public OracleNpc(String artName, Rectangle destinationRectangle, Player player, InGameLevel inGameLevel)
     : this(artName, destinationRectangle, new Rectangle(0, 0, destinationRectangle.Width, destinationRectangle.Height),
     new Color(255, 255, 255, 255), 0, Vector2.Zero, SpriteEffects.None, destinationRectangle.Bottom, player, inGameLevel)
 {
 }