mirror of
https://github.com/ConjureETS/Human-Farm-Tycoon.git
synced 2026-03-24 02:11:07 +00:00
Merge branch 'master' of https://github.com/ConjureETS/Human-Farm-Tycoon
This commit is contained in:
commit
999eca061a
37
Assets/Modèle/Maison.cs
Normal file
37
Assets/Modèle/Maison.cs
Normal 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()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
12
Assets/Modèle/Maison.cs.meta
Normal file
12
Assets/Modèle/Maison.cs.meta
Normal 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:
|
||||
33
Assets/Modèle/MaisonZombie.cs
Normal file
33
Assets/Modèle/MaisonZombie.cs
Normal 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 () {
|
||||
|
||||
}
|
||||
}
|
||||
12
Assets/Modèle/MaisonZombie.cs.meta
Normal file
12
Assets/Modèle/MaisonZombie.cs.meta
Normal 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:
|
||||
Loading…
x
Reference in New Issue
Block a user