Last change
on this file since 875 was
714,
checked in by Maciej Komosinski, 7 years ago
|
- Setting default NeuroClass? active/genactive in preconfigured genetics
- genactive becomes bool (was int)
- Code formatting
|
-
Property svn:eol-style set to
native
|
File size:
624 bytes
|
Rev | Line | |
---|
[286] | 1 | // This file is a part of Framsticks SDK. http://www.framsticks.com/ |
---|
[714] | 2 | // Copyright (C) 1999-2017 Maciej Komosinski and Szymon Ulatowski. |
---|
[286] | 3 | // See LICENSE.txt for details. |
---|
[138] | 4 | |
---|
| 5 | #include "geneticneuroparam.h" |
---|
| 6 | #include <frams/neuro/neurolibrary.h> |
---|
| 7 | |
---|
[714] | 8 | GeneticNeuroParam::GeneticNeuroParam(const char* groupname, const char* myname, |
---|
| 9 | const char* prefix, const char* typ) |
---|
| 10 | :NeuroLibParam(groupname, myname, prefix), types(typ) |
---|
[138] | 11 | {} |
---|
| 12 | |
---|
[247] | 13 | paInt GeneticNeuroParam::getInt(int i) |
---|
[714] | 14 | { |
---|
| 15 | return Neuro::getClass(i)->genactive ? 1 : 0; |
---|
| 16 | } |
---|
[138] | 17 | |
---|
[714] | 18 | int GeneticNeuroParam::setInt(int i, paInt v) |
---|
| 19 | { |
---|
| 20 | Neuro::getClass(i)->genactive = (v != 0); return PSET_CHANGED; |
---|
| 21 | } |
---|
[138] | 22 | |
---|
Note: See
TracBrowser
for help on using the repository browser.