Committing the Maison and MaisonZombie files to the modèle folder.

This commit is contained in:
Mike 2015-08-12 11:53:25 -04:00
parent c2c65239cd
commit 0229887a25
4 changed files with 94 additions and 0 deletions

37
Assets/Modèle/Maison.cs Normal file
View File

@ -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()
{
}
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 84efca5f1d4d58c4b85fad9868ac7d10
timeCreated: 1439393999
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -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 () {
}
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: a4de6dd9466956143a2271181d341ea6
timeCreated: 1439394195
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: