コード例 #1
0
ファイル: IVisible.cs プロジェクト: jodigiordano/commander
        public IVisible()
        {
            this.Nom = "";
            this.typeInterne = TypeInterne.Autre;
            this.texture = null;
            this.textureData = null;
            this.TextureNom = "";
            this.texte = null;
            this.police = null;
            this.PoliceNom = "";

            this.rotation = 0.0f;
            tailleVecteur.X = tailleVecteur.Y = 1;

            this.Blend = BlendType.Alpha;
            this.Couleur = Color.White;
            this.Components = null;
            this.Effets = SpriteEffects.None;
            this.DessinerPartie = false;
            this.VisualPriority = 0;

            Id = Visuals.NextHashCode;
        }
コード例 #2
0
ファイル: IVisible.cs プロジェクト: jodigiordano/commander
        //=============================================================================
        // Constructeurs
        //=============================================================================

        public IVisible(Texture2D texture, Vector3 position)
            : this()
        {
            this.typeInterne = TypeInterne.Texture;
            this.texture = texture;

            this.position.X = position.X;
            this.position.Y = position.Y;
            this.position.Z = position.Z;

            Id = Visuals.NextHashCode;
        }
コード例 #3
0
ファイル: IVisible.cs プロジェクト: jodigiordano/commander
        public IVisible(string texte, SpriteFont police, Color couleur, Vector3 position)
            : this()
        {
            this.typeInterne = TypeInterne.Texte;
            this.texte = texte;
            this.police = police;

            this.position.X = position.X;
            this.position.Y = position.Y;
            this.position.Z = position.Z;

            this.Couleur = couleur;

            Id = Visuals.NextHashCode;
        }