コード例 #1
0
ファイル: Encounter.cs プロジェクト: warrocky/FightLands
        public Encounter(LandCreature anchor, Land land)
            : base(land)
        {
            this.anchor = anchor;

            physicalProperties = new LandPhysicalProperties();
            physicalProperties.activelyColliding = true;
            physicalProperties.collisionType = LandCollisionTypes.Static;
            physicalProperties.radius = encounterRadius;

            Dummy = new DrawableTexture("whiteCircle100x100", this);
            Dummy.size = new Vector2(100f, 100f);
            Dummy.filter = Color.Transparent;
            Dummy.layer = 0.98f;
        }
コード例 #2
0
ファイル: Encounter.cs プロジェクト: warrocky/FightLands
        public Encounter(LandCreature anchor, Land land)
            : base(land)
        {
            this.anchor = anchor;

            physicalProperties = new LandPhysicalProperties();
            physicalProperties.activelyColliding = true;
            physicalProperties.collisionType     = LandCollisionTypes.Static;
            physicalProperties.radius            = encounterRadius;

            Dummy        = new DrawableTexture("whiteCircle100x100", this);
            Dummy.size   = new Vector2(100f, 100f);
            Dummy.filter = Color.Transparent;
            Dummy.layer  = 0.98f;
        }
コード例 #3
0
ファイル: LandCreature.cs プロジェクト: warrocky/FightLands
 public virtual bool authorizeEncounter(LandCreature boogie)
 {
     return creature.checkIfAgressiveTowards(boogie.creature);
 }
コード例 #4
0
ファイル: HumanPlayer.cs プロジェクト: warrocky/FightLands
 public void CreatureEncountered(LandCreature otherCreature)
 {
     movingSpeed = 0f;
     gameManager.StartFight(creature, otherCreature.creature, position);
 }
コード例 #5
0
 public void CreatureEncountered(LandCreature otherCreature)
 {
     movingSpeed = 0f;
     gameManager.StartFight(creature, otherCreature.creature, position);
 }
コード例 #6
0
 public virtual bool authorizeEncounter(LandCreature boogie)
 {
     return(creature.checkIfAgressiveTowards(boogie.creature));
 }