Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
igem-quantifly
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
igem-quantifly
Commits
f1307d78
Commit
f1307d78
authored
Aug 10, 2016
by
Naliwe GS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small changes
parent
1ba11f7e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
5 deletions
+0
-5
workspace.xml
.idea.igem-quantifly/.idea/workspace.xml
+0
-0
Ground - Block.mat
Assets/Materials/Ground - Block.mat
+0
-0
Main.unity
Assets/Scenes/Main.unity
+0
-0
CellularAutomaton.cs
Assets/Scripts/MapGeneration/CellularAutomaton.cs
+0
-5
No files found.
.idea.igem-quantifly/.idea/workspace.xml
View file @
f1307d78
This diff is collapsed.
Click to expand it.
Assets/Materials/Ground - Block.mat
View file @
f1307d78
No preview for this file type
Assets/Scenes/Main.unity
View file @
f1307d78
No preview for this file type
Assets/Scripts/MapGeneration/CellularAutomaton.cs
View file @
f1307d78
...
@@ -95,8 +95,6 @@ namespace Assets.Scripts.MapGeneration
...
@@ -95,8 +95,6 @@ namespace Assets.Scripts.MapGeneration
{
{
for
(
var
y
=
origin
.
Position
.
y
-
1
;
y
<=
origin
.
Position
.
y
+
1
;
y
++)
for
(
var
y
=
origin
.
Position
.
y
-
1
;
y
<=
origin
.
Position
.
y
+
1
;
y
++)
{
{
Debug
.
Log
(
string
.
Format
(
"Processing cell {0}:{1}"
,
x
,
y
));
if
((
Math
.
Abs
(
x
-
origin
.
Position
.
x
)
>
.
1f
||
Math
.
Abs
(
y
-
origin
.
Position
.
y
)
>
.
1f
)
if
((
Math
.
Abs
(
x
-
origin
.
Position
.
x
)
>
.
1f
||
Math
.
Abs
(
y
-
origin
.
Position
.
y
)
>
.
1f
)
&&
IsInMapRange
(
map
,
(
int
)
x
,
(
int
)
y
)
&&
map
[(
uint
)
x
,
(
uint
)
y
]
!=
origin
.
Type
)
&&
IsInMapRange
(
map
,
(
int
)
x
,
(
int
)
y
)
&&
map
[(
uint
)
x
,
(
uint
)
y
]
!=
origin
.
Type
)
{
{
...
@@ -105,8 +103,6 @@ namespace Assets.Scripts.MapGeneration
...
@@ -105,8 +103,6 @@ namespace Assets.Scripts.MapGeneration
}
}
}
}
Debug
.
Log
(
string
.
Format
(
"{0}"
,
ret
.
Count
));
return
ret
;
return
ret
;
}
}
...
@@ -117,7 +113,6 @@ namespace Assets.Scripts.MapGeneration
...
@@ -117,7 +113,6 @@ namespace Assets.Scripts.MapGeneration
private
static
bool
IsInMapRange
(
Map
map
,
int
x
,
int
y
)
private
static
bool
IsInMapRange
(
Map
map
,
int
x
,
int
y
)
{
{
Debug
.
Log
(
string
.
Format
(
"Is cell {0}:{1} in map range"
,
x
,
y
));
return
(
x
>=
0
&&
x
<
map
.
Columns
&&
return
(
x
>=
0
&&
x
<
map
.
Columns
&&
y
>=
0
&&
y
<
map
.
Rows
);
y
>=
0
&&
y
<
map
.
Rows
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment