diff --git a/Assets/Modèle/Maison.cs b/Assets/Modèle/Maison.cs new file mode 100644 index 0000000..4a11d79 --- /dev/null +++ b/Assets/Modèle/Maison.cs @@ -0,0 +1,37 @@ +using UnityEngine; +using System.Collections; + +public class Maison +{ + private Vector2 position; + protected readonly int MAX_CARACTERES = 10; + + + public Maison() + { + position = new Vector2(0, 0); + } + + + Maison(Vector2 position) + { + this.position = position; + } + + Vector2 getPosition() + { + return position; + } + + void Start() + { + + } + + void update() + { + + } + +} + diff --git a/Assets/Modèle/Maison.cs.meta b/Assets/Modèle/Maison.cs.meta new file mode 100644 index 0000000..d3278ae --- /dev/null +++ b/Assets/Modèle/Maison.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 84efca5f1d4d58c4b85fad9868ac7d10 +timeCreated: 1439393999 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Modèle/MaisonZombie.cs b/Assets/Modèle/MaisonZombie.cs new file mode 100644 index 0000000..cd5f275 --- /dev/null +++ b/Assets/Modèle/MaisonZombie.cs @@ -0,0 +1,33 @@ +using UnityEngine; +using System.Collections; + +public class MaisonZombie : Maison{ + + + private int nbZombie; + + void addZombie(int montant) + { + if (nbZombie < MAX_CARACTERES) + { + //TODO: assign zombie to this house or decrement houseless zombie + nbZombie++; + } + + else + { + //TODO: alert to player: Too many zombies in one house! You must construct additional zombie houses. + } + } + + + // Use this for initialization + void Start () { + + } + + // Update is called once per frame + void Update () { + + } +} diff --git a/Assets/Modèle/MaisonZombie.cs.meta b/Assets/Modèle/MaisonZombie.cs.meta new file mode 100644 index 0000000..3a88611 --- /dev/null +++ b/Assets/Modèle/MaisonZombie.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a4de6dd9466956143a2271181d341ea6 +timeCreated: 1439394195 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: